Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.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.Lines.Examples.ACSimpleGrid,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid",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.254/2.254, allocations: 390.3 MB / 405.3 MB, free: 13.43 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.001147/0.001147, allocations: 187.4 kB / 498.1 MB, free: 5.676 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.575/1.575, allocations: 223.2 MB / 0.7948 GB, free: 17.89 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.001035/0.001035, allocations: 88.33 kB / 0.9346 GB, free: 6.203 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004296/0.0004296, allocations: 6.438 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2694/0.2699, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2253/0.4952, allocations: 193.5 MB / 1.412 GB, free: 368 kB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004512/0.4958, allocations: 99.94 kB / 1.412 GB, free: 268 kB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 0.6487/1.144, allocations: 30.92 MB / 1.442 GB, free: 192 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.653e-06/1.145, allocations: 0 / 1.442 GB, free: 192 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 3.543e-05/1.145, allocations: 7.562 kB / 1.442 GB, free: 192 MB / 0.9167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001278/1.146, allocations: 0.752 MB / 1.443 GB, free: 191.5 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/1.146, allocations: 13.38 kB / 1.443 GB, free: 191.5 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.578e-05/1.146, allocations: 70.34 kB / 1.443 GB, free: 191.4 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002359/1.148, allocations: 0.5724 MB / 1.444 GB, free: 191.4 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008125/1.149, allocations: 476 kB / 1.444 GB, free: 191.2 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.232e-05/1.149, allocations: 22.84 kB / 1.444 GB, free: 191.2 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.96e-05/1.149, allocations: 29.25 kB / 1.444 GB, free: 191.2 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00142/1.151, allocations: 0.7609 MB / 1.445 GB, free: 191 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.814e-05/1.151, allocations: 1.594 kB / 1.445 GB, free: 191 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.961e-05/1.151, allocations: 10.47 kB / 1.445 GB, free: 191 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-05/1.151, allocations: 24.41 kB / 1.445 GB, free: 191 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00184/1.153, allocations: 0.8595 MB / 1.446 GB, free: 191 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003394/1.156, allocations: 2.872 MB / 1.449 GB, free: 189.4 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001518/1.158, allocations: 0.5197 MB / 1.449 GB, free: 189.4 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 8.694e-05/1.158, allocations: 83.23 kB / 1.449 GB, free: 189.3 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.898e-05/1.158, allocations: 38.81 kB / 1.449 GB, free: 189.2 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=16): time 2.214e-06/1.158, allocations: 0 / 1.449 GB, free: 189.2 MB / 0.9167 GB Notification: Performance of matching and sorting (n=24): time 0.009483/1.167, allocations: 2.948 MB / 1.452 GB, free: 188.7 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.674e-05/1.167, allocations: 87.3 kB / 1.452 GB, free: 188.6 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004176/1.168, allocations: 378.4 kB / 1.452 GB, free: 188.4 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 4.131e-05/1.168, allocations: 31.8 kB / 1.452 GB, free: 188.4 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/1.168, allocations: 237.2 kB / 1.453 GB, free: 188.2 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 6.94e-05/1.168, allocations: 88.47 kB / 1.453 GB, free: 188.1 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.784e-05/1.168, allocations: 5.5 kB / 1.453 GB, free: 188.1 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.388e-05/1.168, allocations: 346.2 kB / 1.453 GB, free: 187.8 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008151/1.169, allocations: 364.4 kB / 1.453 GB, free: 187.7 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008774/1.17, allocations: 445.1 kB / 1.454 GB, free: 187.5 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008442/1.171, allocations: 391.3 kB / 1.454 GB, free: 187.4 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/1.171, allocations: 5.406 kB / 1.454 GB, free: 187.4 MB / 0.9167 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.004545/1.175, allocations: 1.402 MB / 1.456 GB, free: 187 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001624/1.175, allocations: 0.7885 MB / 1.456 GB, free: 186.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/1.175, allocations: 1.75 kB / 1.456 GB, free: 186.2 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003397/1.179, allocations: 0.7058 MB / 1.457 GB, free: 186.1 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005927/1.179, allocations: 129.9 kB / 1.457 GB, free: 186.1 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003637/1.183, allocations: 3.251 MB / 1.46 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006745/1.184, allocations: 113.9 kB / 1.461 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.891e-05/1.184, allocations: 17.25 kB / 1.461 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 9.638e-06/1.184, allocations: 6.688 kB / 1.461 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003151/1.187, allocations: 1.148 MB / 1.462 GB, free: 183.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/1.187, allocations: 7.906 kB / 1.462 GB, free: 183.5 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00188/1.189, allocations: 466.6 kB / 1.462 GB, free: 183.5 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005627/1.189, allocations: 142.3 kB / 1.462 GB, free: 183.5 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002774/1.192, allocations: 2.539 MB / 1.465 GB, free: 181.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000668/1.193, allocations: 102.2 kB / 1.465 GB, free: 181.6 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.588e-05/1.193, allocations: 15.8 kB / 1.465 GB, free: 181.6 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 2} * Non-linear torn systems: 1 {2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003906/1.193, allocations: 321.1 kB / 1.465 GB, free: 181.3 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.713e-05/1.193, allocations: 35.2 kB / 1.465 GB, free: 181.3 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003609/1.197, allocations: 1.311 MB / 1.466 GB, free: 180.6 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/1.197, allocations: 3.062 kB / 1.466 GB, free: 180.6 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.105e-06/1.197, allocations: 0 / 1.466 GB, free: 180.6 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/1.197, allocations: 3.969 kB / 1.466 GB, free: 180.6 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004305/1.201, allocations: 1.994 MB / 1.468 GB, free: 179.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/1.201, allocations: 3.156 kB / 1.468 GB, free: 179.3 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003613/1.202, allocations: 89.02 kB / 1.469 GB, free: 179.3 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002685/1.205, allocations: 0.6882 MB / 1.469 GB, free: 178.9 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.431e-05/1.205, allocations: 11.8 kB / 1.469 GB, free: 178.9 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004572/1.209, allocations: 4.564 MB / 1.474 GB, free: 175.2 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.716e-06/1.209, allocations: 3.953 kB / 1.474 GB, free: 175.2 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003455/1.213, allocations: 1.369 MB / 1.475 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002628/1.213, allocations: 169.3 kB / 1.475 GB, free: 174.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.882e-05/1.213, allocations: 7.875 kB / 1.475 GB, free: 174.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005234/1.214, allocations: 90.56 kB / 1.475 GB, free: 174.1 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/1.214, allocations: 26.22 kB / 1.475 GB, free: 174.1 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.831e-05/1.214, allocations: 7.031 kB / 1.475 GB, free: 174.1 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0002921/1.214, allocations: 311.4 kB / 1.476 GB, free: 173.9 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.5e-07/1.214, allocations: 0 / 1.476 GB, free: 173.9 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0008178/1.215, allocations: 217.3 kB / 1.476 GB, free: 173.9 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 2} * Non-linear torn systems: 1 {2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.003894/1.219, allocations: 2.195 MB / 1.478 GB, free: 172.1 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.003011/1.222, allocations: 1.507 MB / 1.479 GB, free: 170.6 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/1.222, allocations: 0 / 1.479 GB, free: 170.6 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.001065/1.223, allocations: 0.6665 MB / 1.48 GB, free: 169.9 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005676/1.223, allocations: 119 kB / 1.48 GB, free: 169.8 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007714/1.231, allocations: 5.268 MB / 1.485 GB, free: 164.4 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003964/1.232, allocations: 0.9171 MB / 1.486 GB, free: 163.5 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.00054/1.232, allocations: 157.7 kB / 1.486 GB, free: 163.3 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002126/1.232, allocations: 135.4 kB / 1.486 GB, free: 163.2 MB / 0.9167 GB Notification: Performance of SimCode: time 7.163e-06/1.232, allocations: 0 / 1.486 GB, free: 163.2 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02834/1.261, allocations: 15.87 MB / 1.502 GB, free: 147.6 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001632/1.261, allocations: 219.9 kB / 1.502 GB, free: 147.3 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.232/3.493, allocations: 0 / 1.502 GB, free: 147.3 MB / 0.9167 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat does not exist to compare? outputFormat=mat