Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource",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 10.0.0-master/package.mo): time 1.814/1.814, allocations: 390.4 MB / 397.7 MB, free: 11.3 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.0009329/0.000933, allocations: 193.2 kB / 490.8 MB, free: 1.945 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.122/1.122, allocations: 221.3 MB / 0.7863 GB, free: 13.68 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.0008329/0.0008332, allocations: 82.61 kB / 0.9264 GB, free: 14.2 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4242/0.4251, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1847/0.6097, allocations: 143 MB / 1.212 GB, free: 40.04 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5333/1.143, allocations: 173 MB / 1.381 GB, free: 17.09 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002451/1.143, allocations: 92.41 kB / 1.381 GB, free: 17.09 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.04374/1.187, allocations: 19.47 MB / 1.4 GB, free: 25.59 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/1.187, allocations: 9.688 kB / 1.4 GB, free: 25.59 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008898/1.188, allocations: 105.5 kB / 1.4 GB, free: 25.54 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004042/1.188, allocations: 274.7 kB / 1.4 GB, free: 25.29 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.114e-05/1.188, allocations: 11.3 kB / 1.4 GB, free: 25.29 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.893e-05/1.189, allocations: 12.31 kB / 1.4 GB, free: 25.29 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005138/1.189, allocations: 253.1 kB / 1.4 GB, free: 25.27 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004386/1.19, allocations: 349.4 kB / 1.401 GB, free: 24.98 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/1.19, allocations: 3.984 kB / 1.401 GB, free: 24.97 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.39e-05/1.19, allocations: 11.89 kB / 1.401 GB, free: 24.96 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.322e-05/1.19, allocations: 28.3 kB / 1.401 GB, free: 24.93 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001779/1.191, allocations: 1.614 MB / 1.402 GB, free: 23.4 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004512/1.192, allocations: 328.5 kB / 1.403 GB, free: 23.15 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000186/1.192, allocations: 159.9 kB / 1.403 GB, free: 23.03 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001389/1.192, allocations: 90.67 kB / 1.403 GB, free: 22.93 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002536/1.192, allocations: 216.6 kB / 1.403 GB, free: 22.74 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=27): time 1.944e-06/1.193, allocations: 0 / 1.403 GB, free: 22.74 MB / 0.8386 GB Notification: Performance of matching and sorting (n=28): time 0.0008527/1.193, allocations: 427.5 kB / 1.403 GB, free: 22.39 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.647e-05/1.193, allocations: 88.09 kB / 1.404 GB, free: 22.29 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001712/1.194, allocations: 198.7 kB / 1.404 GB, free: 22.12 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.818e-05/1.194, allocations: 25.7 kB / 1.404 GB, free: 22.09 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.328e-05/1.194, allocations: 150.3 kB / 1.404 GB, free: 21.95 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.004e-05/1.194, allocations: 88.88 kB / 1.404 GB, free: 21.87 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.84e-05/1.194, allocations: 0 / 1.404 GB, free: 21.87 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.815e-05/1.194, allocations: 333.6 kB / 1.404 GB, free: 21.55 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001782/1.194, allocations: 127.6 kB / 1.404 GB, free: 21.47 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000188/1.194, allocations: 215.6 kB / 1.405 GB, free: 21.28 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002622/1.195, allocations: 170.5 kB / 1.405 GB, free: 21.16 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/1.195, allocations: 0 / 1.405 GB, free: 21.16 MB / 0.8386 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.00066/1.195, allocations: 425.1 kB / 1.405 GB, free: 20.84 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002401/1.195, allocations: 0.8861 MB / 1.406 GB, free: 19.9 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/1.195, allocations: 4 kB / 1.406 GB, free: 19.9 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001913/1.196, allocations: 35.89 kB / 1.406 GB, free: 19.86 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003938/1.196, allocations: 95.23 kB / 1.406 GB, free: 19.77 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001041/1.197, allocations: 1.409 MB / 1.408 GB, free: 18.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003447/1.197, allocations: 43.98 kB / 1.408 GB, free: 18.27 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.286e-05/1.198, allocations: 14.8 kB / 1.408 GB, free: 18.26 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.839e-06/1.198, allocations: 4 kB / 1.408 GB, free: 18.26 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005726/1.198, allocations: 347.2 kB / 1.408 GB, free: 18 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/1.198, allocations: 8.219 kB / 1.408 GB, free: 18 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001164/1.198, allocations: 47.88 kB / 1.408 GB, free: 17.95 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003518/1.199, allocations: 91.25 kB / 1.408 GB, free: 17.87 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009275/1.2, allocations: 1.402 MB / 1.409 GB, free: 16.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003059/1.2, allocations: 39.98 kB / 1.409 GB, free: 16.39 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.952e-05/1.2, allocations: 23.34 kB / 1.409 GB, free: 16.37 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.load.T_start,load.T_start,$PRE.load.count,load.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001054/1.2, allocations: 116.8 kB / 1.41 GB, free: 16.25 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.021e-05/1.2, allocations: 23.86 kB / 1.41 GB, free: 16.22 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006178/1.201, allocations: 395.2 kB / 1.41 GB, free: 15.93 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/1.201, allocations: 8 kB / 1.41 GB, free: 15.92 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/1.201, allocations: 0 / 1.41 GB, free: 15.92 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/1.201, allocations: 7.984 kB / 1.41 GB, free: 15.91 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004714/1.201, allocations: 0.5127 MB / 1.411 GB, free: 15.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/1.201, allocations: 0 / 1.411 GB, free: 15.43 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000369/1.202, allocations: 83.47 kB / 1.411 GB, free: 15.35 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001049/1.202, allocations: 32.02 kB / 1.411 GB, free: 15.32 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.716e-05/1.202, allocations: 11.89 kB / 1.411 GB, free: 15.31 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008163/1.203, allocations: 1.335 MB / 1.412 GB, free: 13.93 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/1.203, allocations: 4 kB / 1.412 GB, free: 13.92 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005681/1.203, allocations: 0.5047 MB / 1.412 GB, free: 13.46 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006759/1.204, allocations: 0.8824 MB / 1.413 GB, free: 12.62 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001166/1.204, allocations: 134.6 kB / 1.413 GB, free: 12.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.042e-05/1.204, allocations: 3.906 kB / 1.413 GB, free: 12.47 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003138/1.204, allocations: 39.95 kB / 1.413 GB, free: 12.43 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.826e-05/1.204, allocations: 26.84 kB / 1.413 GB, free: 12.41 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.526e-05/1.204, allocations: 7.984 kB / 1.414 GB, free: 12.41 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.000117/1.205, allocations: 159.6 kB / 1.414 GB, free: 12.27 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001617/1.206, allocations: 130.6 kB / 1.414 GB, free: 12.15 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,load.T_start,load.count) * Number of discrete states: 1 (load.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000161/1.206, allocations: 130.5 kB / 1.414 GB, free: 12.02 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0009435/1.207, allocations: 0.7689 MB / 1.415 GB, free: 11.37 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/1.207, allocations: 4 kB / 1.415 GB, free: 11.37 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003388/1.208, allocations: 270 kB / 1.415 GB, free: 11.14 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003077/1.208, allocations: 48.31 kB / 1.415 GB, free: 11.11 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001/1.209, allocations: 475.6 kB / 1.415 GB, free: 10.67 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004138/1.209, allocations: 0.8217 MB / 1.416 GB, free: 9.836 MB / 0.8386 GB Notification: Performance of SimCode: time 2.7e-07/1.209, allocations: 0 / 1.416 GB, free: 9.836 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource_res.mat does not exist to compare? outputFormat=mat