Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.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,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine",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.849/1.849, allocations: 387.2 MB / 394.5 MB, free: 13.66 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.001015/0.001015, allocations: 181.3 kB / 487 MB, free: 5.395 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.128/1.128, allocations: 221.3 MB / 0.7819 GB, free: 1.453 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.0009456/0.0009456, allocations: 98.5 kB / 0.9213 GB, free: 2.699 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.42/0.4209, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1839/0.6048, allocations: 142.3 MB / 1.205 GB, free: 26.16 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5191/1.124, allocations: 190.7 MB / 1.392 GB, free: 2.395 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002225/1.124, allocations: 94.53 kB / 1.392 GB, free: 2.344 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.1962/1.32, allocations: 84.34 MB / 1.474 GB, free: 11.2 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/1.321, allocations: 8 kB / 1.474 GB, free: 11.19 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01033/1.331, allocations: 1.458 MB / 1.475 GB, free: 9.75 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002642/1.334, allocations: 1.154 MB / 1.477 GB, free: 8.75 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.104e-05/1.334, allocations: 36 kB / 1.477 GB, free: 8.715 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003372/1.334, allocations: 68.69 kB / 1.477 GB, free: 8.648 MB / 0.9011 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002589/1.337, allocations: 1.496 MB / 1.478 GB, free: 7.695 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00274/1.339, allocations: 1.918 MB / 1.48 GB, free: 6.031 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.477e-05/1.339, allocations: 0 / 1.48 GB, free: 6.031 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000144/1.339, allocations: 11.94 kB / 1.48 GB, free: 6.02 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.432e-05/1.34, allocations: 82.19 kB / 1.48 GB, free: 5.938 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01262/1.352, allocations: 9.796 MB / 1.49 GB, free: 11.5 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001837/1.354, allocations: 1.097 MB / 1.491 GB, free: 10.37 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000754/1.355, allocations: 0.6064 MB / 1.491 GB, free: 9.766 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 3.988e-05/1.355, allocations: 12.38 kB / 1.491 GB, free: 9.75 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.415e-05/1.355, allocations: 39 kB / 1.491 GB, free: 9.703 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=53): time 2.775e-06/1.355, allocations: 0 / 1.491 GB, free: 9.703 MB / 0.9167 GB Notification: Performance of matching and sorting (n=81): time 0.008513/1.363, allocations: 3.948 MB / 1.495 GB, free: 5.723 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.044e-05/1.364, allocations: 214.3 kB / 1.495 GB, free: 5.465 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008776/1.364, allocations: 0.7499 MB / 1.496 GB, free: 4.703 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 9.245e-05/1.365, allocations: 29.7 kB / 1.496 GB, free: 4.668 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003029/1.365, allocations: 0.5455 MB / 1.497 GB, free: 4.113 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002259/1.365, allocations: 275.9 kB / 1.497 GB, free: 3.84 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.155e-05/1.365, allocations: 0 / 1.497 GB, free: 3.84 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001125/1.365, allocations: 341.9 kB / 1.497 GB, free: 3.5 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009152/1.366, allocations: 0.697 MB / 1.498 GB, free: 2.801 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001058/1.367, allocations: 0.936 MB / 1.499 GB, free: 1.758 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001251/1.369, allocations: 0.7891 MB / 1.5 GB, free: 0.9688 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/1.369, allocations: 7.938 kB / 1.5 GB, free: 0.9609 MB / 0.9167 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.004875/1.373, allocations: 2.491 MB / 1.502 GB, free: 14.43 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/1.373, allocations: 4 kB / 1.502 GB, free: 14.43 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/1.373, allocations: 8 kB / 1.502 GB, free: 14.42 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00314/1.377, allocations: 0.842 MB / 1.503 GB, free: 13.55 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001851/1.378, allocations: 343.4 kB / 1.503 GB, free: 13.21 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01391/1.392, allocations: 13.83 MB / 1.517 GB, free: 14.45 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002072/1.394, allocations: 199.7 kB / 1.517 GB, free: 14.26 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000132/1.395, allocations: 47.97 kB / 1.517 GB, free: 14.21 MB / 0.948 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 (78): * Single equations (assignments): 70 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(3,100.0%) 5,(3,100.0%) 5,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002586/1.395, allocations: 130.1 kB / 1.517 GB, free: 14.08 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002077/1.395, allocations: 130.5 kB / 1.517 GB, free: 13.95 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005364/1.4, allocations: 2.529 MB / 1.52 GB, free: 11.38 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/1.401, allocations: 8 kB / 1.52 GB, free: 11.38 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/1.401, allocations: 8 kB / 1.52 GB, free: 11.37 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/1.401, allocations: 3.984 kB / 1.52 GB, free: 11.36 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007241/1.408, allocations: 4.099 MB / 1.524 GB, free: 7.156 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/1.408, allocations: 8 kB / 1.524 GB, free: 7.148 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001641/1.409, allocations: 279.9 kB / 1.524 GB, free: 6.875 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002786/1.412, allocations: 0.7683 MB / 1.525 GB, free: 6.082 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.474e-05/1.412, allocations: 15.97 kB / 1.525 GB, free: 6.066 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0133/1.426, allocations: 13.38 MB / 1.538 GB, free: 7.766 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/1.426, allocations: 4 kB / 1.538 GB, free: 7.762 MB / 0.9636 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004638/1.43, allocations: 2.464 MB / 1.54 GB, free: 5.168 MB / 0.9636 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004761/1.435, allocations: 2.879 MB / 1.543 GB, free: 2.156 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008698/1.436, allocations: 383.2 kB / 1.543 GB, free: 1.762 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002444/1.436, allocations: 4 kB / 1.543 GB, free: 1.758 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001865/1.438, allocations: 203.9 kB / 1.544 GB, free: 1.559 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001229/1.438, allocations: 48.5 kB / 1.544 GB, free: 1.508 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001083/1.438, allocations: 43.91 kB / 1.544 GB, free: 1.465 MB / 0.9636 GB Notification: Performance of sort global known variables: time 0.0007662/1.439, allocations: 0.5641 MB / 1.544 GB, free: 0.8945 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.00212/1.441, allocations: 407.9 kB / 1.545 GB, free: 0.4961 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 38 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 2,(2,100.0%) 4,(3,100.0%) 5,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(3,100.0%) 5,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002583/1.442, allocations: 130.6 kB / 1.545 GB, free: 372 kB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.004297/1.446, allocations: 2.709 MB / 1.547 GB, free: 13.57 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 4.658e-06/1.446, allocations: 4 kB / 1.547 GB, free: 13.57 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.002917/1.449, allocations: 1.84 MB / 1.549 GB, free: 11.64 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001644/1.45, allocations: 412.3 kB / 1.55 GB, free: 11.24 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006821/1.457, allocations: 2.604 MB / 1.552 GB, free: 8.562 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001435/1.459, allocations: 1.491 MB / 1.554 GB, free: 7.043 MB / 0.9792 GB Notification: Performance of SimCode: time 1.503e-06/1.459, allocations: 4 kB / 1.554 GB, free: 7.039 MB / 0.9792 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.mat does not exist to compare? outputFormat=mat