Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.309/2.309, allocations: 387.1 MB / 399.7 MB, free: 9.469 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 183 kB / 492.3 MB, free: 0.5977 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.488/1.488, allocations: 221.3 MB / 0.7871 GB, free: 12.87 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 98.84 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.45e-05/3.452e-05, allocations: 4 kB / 1.073 GB, free: 180.2 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2882/0.2883, allocations: 142.3 MB / 1.212 GB, free: 38.38 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.091/1.38, allocations: 165.3 MB / 1.374 GB, free: 19 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003584/1.38, allocations: 94.45 kB / 1.374 GB, free: 19 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.1097/1.49, allocations: 32.26 MB / 1.405 GB, free: 20.49 MB / 0.8386 GB Notification: Performance of FrontEnd: time 4.088e-06/1.49, allocations: 4 kB / 1.405 GB, free: 20.48 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.526e-05/1.49, allocations: 16 kB / 1.405 GB, free: 20.47 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001988/1.492, allocations: 0.7785 MB / 1.406 GB, free: 19.69 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.64e-05/1.492, allocations: 8.031 kB / 1.406 GB, free: 19.68 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002198/1.492, allocations: 95.44 kB / 1.406 GB, free: 19.61 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002294/1.495, allocations: 206.8 kB / 1.407 GB, free: 19.41 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001203/1.496, allocations: 489.1 kB / 1.407 GB, free: 18.95 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.199e-05/1.496, allocations: 34 kB / 1.407 GB, free: 18.93 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001349/1.496, allocations: 45.14 kB / 1.407 GB, free: 18.9 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001622/1.498, allocations: 0.9202 MB / 1.408 GB, free: 17.99 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.925e-05/1.498, allocations: 7.938 kB / 1.408 GB, free: 17.98 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.23e-05/1.498, allocations: 25.88 kB / 1.408 GB, free: 17.97 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001101/1.498, allocations: 48.69 kB / 1.408 GB, free: 17.93 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001265/1.499, allocations: 0.5516 MB / 1.409 GB, free: 17.54 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00632/1.506, allocations: 5.659 MB / 1.414 GB, free: 11.92 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001038/1.507, allocations: 448.4 kB / 1.415 GB, free: 11.61 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004727/1.507, allocations: 227.7 kB / 1.415 GB, free: 11.46 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.807e-05/1.507, allocations: 4 kB / 1.415 GB, free: 11.46 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.144e-05/1.507, allocations: 54.17 kB / 1.415 GB, free: 11.4 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=32): time 5.43e-06/1.507, allocations: 3.984 kB / 1.415 GB, free: 11.39 MB / 0.8386 GB Notification: Performance of matching and sorting (n=33): time 0.002668/1.51, allocations: 0.837 MB / 1.416 GB, free: 10.71 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.706e-05/1.51, allocations: 55.41 kB / 1.416 GB, free: 10.64 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000835/1.511, allocations: 433.9 kB / 1.416 GB, free: 10.3 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.143e-05/1.511, allocations: 29.39 kB / 1.416 GB, free: 10.27 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003241/1.511, allocations: 344.5 kB / 1.416 GB, free: 10.01 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.000147/1.512, allocations: 120.9 kB / 1.417 GB, free: 9.91 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.403e-05/1.512, allocations: 10.69 kB / 1.417 GB, free: 9.91 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002003/1.512, allocations: 371 kB / 1.417 GB, free: 9.562 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004577/1.512, allocations: 179.9 kB / 1.417 GB, free: 9.445 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000631/1.513, allocations: 402.5 kB / 1.418 GB, free: 9.023 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005785/1.514, allocations: 250.9 kB / 1.418 GB, free: 8.848 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.068e-05/1.514, allocations: 4 kB / 1.418 GB, free: 8.844 MB / 0.8386 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002024/1.516, allocations: 0.7642 MB / 1.418 GB, free: 8.223 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.865e-05/1.516, allocations: 12.88 kB / 1.419 GB, free: 8.211 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.893e-05/1.516, allocations: 8 kB / 1.419 GB, free: 8.203 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007907/1.517, allocations: 146.8 kB / 1.419 GB, free: 8.066 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007199/1.517, allocations: 115.1 kB / 1.419 GB, free: 7.957 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004455/1.522, allocations: 4.034 MB / 1.423 GB, free: 3.703 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007088/1.522, allocations: 31.78 kB / 1.423 GB, free: 3.68 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.198e-05/1.523, allocations: 27.69 kB / 1.423 GB, free: 3.656 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002171/1.523, allocations: 141.5 kB / 1.423 GB, free: 3.527 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001938/1.523, allocations: 63.25 kB / 1.423 GB, free: 3.465 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001635/1.525, allocations: 0.5839 MB / 1.424 GB, free: 3.02 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/1.525, allocations: 4 kB / 1.424 GB, free: 3.016 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/1.525, allocations: 3.953 kB / 1.424 GB, free: 3.012 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/1.525, allocations: 3.984 kB / 1.424 GB, free: 3.008 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002938/1.528, allocations: 1.257 MB / 1.425 GB, free: 1.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/1.528, allocations: 4.031 kB / 1.425 GB, free: 1.926 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004164/1.528, allocations: 51.95 kB / 1.425 GB, free: 1.875 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006575/1.529, allocations: 143 kB / 1.425 GB, free: 1.742 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.385e-05/1.529, allocations: 7.938 kB / 1.425 GB, free: 1.738 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00484/1.534, allocations: 4.033 MB / 1.429 GB, free: 13.48 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.034e-06/1.534, allocations: 3.938 kB / 1.429 GB, free: 13.48 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001922/1.536, allocations: 0.7787 MB / 1.43 GB, free: 12.74 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005375/1.536, allocations: 171.2 kB / 1.43 GB, free: 12.57 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002087/1.536, allocations: 7.188 kB / 1.43 GB, free: 12.57 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005756/1.537, allocations: 30.41 kB / 1.43 GB, free: 12.54 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/1.537, allocations: 31.33 kB / 1.43 GB, free: 12.52 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.556e-05/1.537, allocations: 8 kB / 1.43 GB, free: 12.51 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0007546/1.538, allocations: 328.8 kB / 1.43 GB, free: 12.25 MB / 0.8542 GB Notification: Performance of sort global known variables: time 3.41e-07/1.538, allocations: 0 / 1.43 GB, free: 12.25 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.001187/1.539, allocations: 147.1 kB / 1.43 GB, free: 12.12 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002166/1.541, allocations: 1.819 MB / 1.432 GB, free: 10.36 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.001996/1.543, allocations: 1.004 MB / 1.433 GB, free: 9.418 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/1.543, allocations: 0 / 1.433 GB, free: 9.418 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.001227/1.545, allocations: 0.7301 MB / 1.434 GB, free: 8.672 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001295/1.546, allocations: 180.1 kB / 1.434 GB, free: 8.535 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002477/1.548, allocations: 0.8716 MB / 1.435 GB, free: 7.703 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006439/1.549, allocations: 0.9186 MB / 1.436 GB, free: 6.766 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0005964/1.55, allocations: 117.2 kB / 1.436 GB, free: 6.648 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003812/1.55, allocations: 196.2 kB / 1.436 GB, free: 6.594 MB / 0.8542 GB Notification: Performance of SimCode: time 9.32e-07/1.55, allocations: 0 / 1.436 GB, free: 6.594 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04063/1.591, allocations: 11.98 MB / 1.448 GB, free: 10.89 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002584/1.591, allocations: 184.4 kB / 1.448 GB, free: 10.67 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.356/3.947, allocations: 10.33 kB / 1.448 GB, free: 10.66 MB / 0.8698 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance_res.mat does not exist to compare? outputFormat=mat