Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.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.ACLine_R,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.804/1.804, allocations: 387.2 MB / 394.5 MB, free: 13.71 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.001065/0.001065, allocations: 188.5 kB / 487 MB, free: 5.426 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.162/1.162, allocations: 221.3 MB / 0.7819 GB, free: 1.406 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00093/0.0009298, allocations: 103.2 kB / 0.9213 GB, free: 2.664 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4498/0.4507, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2031/0.6539, allocations: 142.3 MB / 1.205 GB, free: 26.17 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5514/1.205, allocations: 170.9 MB / 1.372 GB, free: 5.516 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002255/1.206, allocations: 89.06 kB / 1.372 GB, free: 5.469 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.08408/1.29, allocations: 40.47 MB / 1.412 GB, free: 3.078 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/1.29, allocations: 8 kB / 1.412 GB, free: 3.07 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001498/1.291, allocations: 250.3 kB / 1.412 GB, free: 2.828 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007538/1.292, allocations: 0.5262 MB / 1.413 GB, free: 2.32 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.067e-05/1.292, allocations: 23.91 kB / 1.413 GB, free: 2.297 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.878e-05/1.292, allocations: 43.44 kB / 1.413 GB, free: 2.258 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008479/1.293, allocations: 0.6165 MB / 1.413 GB, free: 1.848 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001239/1.294, allocations: 1.045 MB / 1.414 GB, free: 0.875 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.242e-05/1.294, allocations: 7.938 kB / 1.414 GB, free: 0.8672 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.202e-05/1.294, allocations: 8 kB / 1.414 GB, free: 0.8594 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.239e-05/1.294, allocations: 56.16 kB / 1.414 GB, free: 0.8086 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004461/1.299, allocations: 5.789 MB / 1.42 GB, free: 11.15 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007717/1.3, allocations: 0.5212 MB / 1.42 GB, free: 10.77 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003943/1.3, allocations: 327.4 kB / 1.421 GB, free: 10.57 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 3.533e-05/1.3, allocations: 4.438 kB / 1.421 GB, free: 10.57 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.648e-05/1.3, allocations: 50.66 kB / 1.421 GB, free: 10.51 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=47): time 2.054e-06/1.3, allocations: 4 kB / 1.421 GB, free: 10.51 MB / 0.8542 GB Notification: Performance of matching and sorting (n=48): time 0.001922/1.302, allocations: 1.174 MB / 1.422 GB, free: 9.582 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.861e-05/1.302, allocations: 59.83 kB / 1.422 GB, free: 9.512 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003728/1.303, allocations: 395.9 kB / 1.422 GB, free: 9.199 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.157e-05/1.303, allocations: 29.7 kB / 1.422 GB, free: 9.164 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001508/1.303, allocations: 345.8 kB / 1.423 GB, free: 8.859 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 9.954e-05/1.303, allocations: 163.2 kB / 1.423 GB, free: 8.719 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.701e-05/1.303, allocations: 4 kB / 1.423 GB, free: 8.715 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001174/1.303, allocations: 368.8 kB / 1.423 GB, free: 8.371 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003306/1.303, allocations: 257.5 kB / 1.424 GB, free: 8.207 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004204/1.304, allocations: 445 kB / 1.424 GB, free: 7.801 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003997/1.304, allocations: 338.3 kB / 1.424 GB, free: 7.574 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/1.304, allocations: 4 kB / 1.424 GB, free: 7.57 MB / 0.8542 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001441/1.306, allocations: 0.9714 MB / 1.425 GB, free: 6.809 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/1.306, allocations: 11.89 kB / 1.425 GB, free: 6.797 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/1.306, allocations: 8 kB / 1.425 GB, free: 6.789 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007871/1.306, allocations: 273.9 kB / 1.426 GB, free: 6.559 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004373/1.307, allocations: 114.9 kB / 1.426 GB, free: 6.449 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005116/1.312, allocations: 6.204 MB / 1.432 GB, free: 312 kB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005184/1.313, allocations: 20.05 kB / 1.432 GB, free: 292 kB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.857e-05/1.313, allocations: 27.31 kB / 1.432 GB, free: 272 kB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 59 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 6,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001488/1.313, allocations: 124.7 kB / 1.432 GB, free: 140 kB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001012/1.313, allocations: 67.23 kB / 1.432 GB, free: 72 kB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001379/1.314, allocations: 0.8471 MB / 1.433 GB, free: 15.45 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/1.314, allocations: 4 kB / 1.433 GB, free: 15.44 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.411e-06/1.314, allocations: 4 kB / 1.433 GB, free: 15.44 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/1.314, allocations: 0 / 1.433 GB, free: 15.44 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002138/1.316, allocations: 1.6 MB / 1.434 GB, free: 14.14 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/1.316, allocations: 7.984 kB / 1.434 GB, free: 14.13 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002456/1.317, allocations: 52.16 kB / 1.434 GB, free: 14.08 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000699/1.317, allocations: 268.2 kB / 1.435 GB, free: 13.86 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.266e-05/1.317, allocations: 7.906 kB / 1.435 GB, free: 13.85 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004927/1.322, allocations: 6.197 MB / 1.441 GB, free: 7.699 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/1.322, allocations: 0 / 1.441 GB, free: 7.699 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001301/1.324, allocations: 1.016 MB / 1.442 GB, free: 6.805 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001346/1.325, allocations: 1.405 MB / 1.443 GB, free: 5.527 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002253/1.325, allocations: 184.9 kB / 1.443 GB, free: 5.348 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.626e-05/1.325, allocations: 4 kB / 1.443 GB, free: 5.344 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003303/1.326, allocations: 15.97 kB / 1.443 GB, free: 5.328 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.766e-05/1.326, allocations: 27.09 kB / 1.443 GB, free: 5.305 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.151e-05/1.326, allocations: 11.62 kB / 1.443 GB, free: 5.297 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0002658/1.326, allocations: 304.6 kB / 1.444 GB, free: 5.07 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001257/1.327, allocations: 195.9 kB / 1.444 GB, free: 4.879 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 6,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000157/1.328, allocations: 111.1 kB / 1.444 GB, free: 4.758 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.00156/1.329, allocations: 1.148 MB / 1.445 GB, free: 3.781 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/1.329, allocations: 4 kB / 1.445 GB, free: 3.777 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001029/1.33, allocations: 0.8036 MB / 1.446 GB, free: 3.043 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007252/1.331, allocations: 161 kB / 1.446 GB, free: 2.922 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001719/1.333, allocations: 0.9893 MB / 1.447 GB, free: 1.996 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006569/1.333, allocations: 1.054 MB / 1.448 GB, free: 0.9414 MB / 0.8698 GB Notification: Performance of SimCode: time 4.3e-07/1.333, allocations: 0 / 1.448 GB, free: 0.9414 MB / 0.8698 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat does not exist to compare? outputFormat=mat