Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.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.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_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 9.1.1-maint.9.1.x/package.mo): time 1.825/1.825, allocations: 387.2 MB / 394.5 MB, free: 13.65 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: 177.3 kB / 487 MB, free: 5.371 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.182/1.182, allocations: 221.3 MB / 0.7819 GB, free: 1.43 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.0008996/0.0008997, allocations: 101.9 kB / 0.9213 GB, free: 2.668 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4221/0.4231, allocations: 148.5 MB / 1.066 GB, free: 168.1 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1911/0.6142, allocations: 142.3 MB / 1.205 GB, free: 26.11 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5308/1.145, allocations: 170.7 MB / 1.372 GB, free: 5.535 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002095/1.145, allocations: 96.3 kB / 1.372 GB, free: 5.48 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.04043/1.186, allocations: 18.8 MB / 1.39 GB, free: 5.566 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.156e-05/1.186, allocations: 12 kB / 1.391 GB, free: 5.555 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007963/1.187, allocations: 99.52 kB / 1.391 GB, free: 5.457 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003418/1.187, allocations: 274.2 kB / 1.391 GB, free: 5.172 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.332e-05/1.187, allocations: 7.938 kB / 1.391 GB, free: 5.164 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.7e-05/1.187, allocations: 12 kB / 1.391 GB, free: 5.152 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004033/1.187, allocations: 249.3 kB / 1.391 GB, free: 4.988 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004844/1.188, allocations: 358.2 kB / 1.391 GB, free: 4.691 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/1.188, allocations: 3.906 kB / 1.391 GB, free: 4.688 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.146e-05/1.188, allocations: 0 / 1.391 GB, free: 4.688 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.488e-05/1.188, allocations: 20.36 kB / 1.391 GB, free: 4.664 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001837/1.19, allocations: 1.617 MB / 1.393 GB, free: 3.121 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004734/1.19, allocations: 340.7 kB / 1.393 GB, free: 2.855 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002034/1.191, allocations: 155.3 kB / 1.394 GB, free: 2.742 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001514/1.191, allocations: 93.08 kB / 1.394 GB, free: 2.633 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002655/1.191, allocations: 220.3 kB / 1.394 GB, free: 2.449 MB / 0.823 GB Notification: Performance of pre-optimization done (n=27): time 1.583e-06/1.191, allocations: 0 / 1.394 GB, free: 2.449 MB / 0.823 GB Notification: Performance of matching and sorting (n=28): time 0.000838/1.192, allocations: 432.6 kB / 1.394 GB, free: 2.098 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.094e-05/1.192, allocations: 88.95 kB / 1.394 GB, free: 1.992 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001523/1.192, allocations: 184.7 kB / 1.395 GB, free: 1.836 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 2.892e-05/1.192, allocations: 25.7 kB / 1.395 GB, free: 1.805 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 6.631e-05/1.192, allocations: 151 kB / 1.395 GB, free: 1.664 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 6.347e-05/1.192, allocations: 85.44 kB / 1.395 GB, free: 1.59 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.005e-05/1.192, allocations: 7.938 kB / 1.395 GB, free: 1.582 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 8.967e-05/1.192, allocations: 335.8 kB / 1.395 GB, free: 1.254 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000186/1.193, allocations: 136 kB / 1.395 GB, free: 1.168 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002107/1.193, allocations: 198.4 kB / 1.395 GB, free: 0.9961 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002797/1.193, allocations: 170.2 kB / 1.396 GB, free: 0.8828 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/1.193, allocations: 0 / 1.396 GB, free: 0.8828 MB / 0.823 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006925/1.194, allocations: 425.7 kB / 1.396 GB, free: 0.5547 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002944/1.194, allocations: 0.8844 MB / 1.397 GB, free: 15.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/1.194, allocations: 3.984 kB / 1.397 GB, free: 15.61 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000189/1.194, allocations: 40.33 kB / 1.397 GB, free: 15.58 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004082/1.195, allocations: 91.5 kB / 1.397 GB, free: 15.49 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00111/1.196, allocations: 1.41 MB / 1.398 GB, free: 14.03 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000342/1.196, allocations: 51.28 kB / 1.398 GB, free: 13.98 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.063e-05/1.196, allocations: 12 kB / 1.398 GB, free: 13.97 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.441e-06/1.196, allocations: 4 kB / 1.398 GB, free: 13.97 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006081/1.197, allocations: 352.7 kB / 1.399 GB, free: 13.71 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.286e-06/1.197, allocations: 4.031 kB / 1.399 GB, free: 13.71 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001197/1.197, allocations: 43.64 kB / 1.399 GB, free: 13.67 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003626/1.197, allocations: 83.88 kB / 1.399 GB, free: 13.59 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001013/1.198, allocations: 1.397 MB / 1.4 GB, free: 12.15 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000303/1.199, allocations: 47.92 kB / 1.4 GB, free: 12.1 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.94e-05/1.199, allocations: 15.28 kB / 1.4 GB, free: 12.09 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.0001136/1.199, allocations: 117.1 kB / 1.4 GB, free: 11.97 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.332e-05/1.199, allocations: 27.03 kB / 1.4 GB, free: 11.95 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006719/1.2, allocations: 394.3 kB / 1.401 GB, free: 11.64 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/1.2, allocations: 4.141 kB / 1.401 GB, free: 11.64 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/1.2, allocations: 0 / 1.401 GB, free: 11.64 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/1.2, allocations: 3.984 kB / 1.401 GB, free: 11.64 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005473/1.2, allocations: 0.5199 MB / 1.401 GB, free: 11.14 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/1.2, allocations: 0 / 1.401 GB, free: 11.14 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004028/1.201, allocations: 83.84 kB / 1.401 GB, free: 11.07 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001149/1.201, allocations: 39.73 kB / 1.401 GB, free: 11.03 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.615e-05/1.201, allocations: 7.375 kB / 1.401 GB, free: 11.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000902/1.202, allocations: 1.335 MB / 1.403 GB, free: 9.637 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/1.202, allocations: 4.062 kB / 1.403 GB, free: 9.633 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006041/1.202, allocations: 0.5059 MB / 1.403 GB, free: 9.164 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007287/1.203, allocations: 0.8714 MB / 1.404 GB, free: 8.336 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/1.203, allocations: 142.7 kB / 1.404 GB, free: 8.188 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.895e-05/1.203, allocations: 4 kB / 1.404 GB, free: 8.184 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003164/1.204, allocations: 35.95 kB / 1.404 GB, free: 8.148 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.271e-05/1.204, allocations: 30.14 kB / 1.404 GB, free: 8.125 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-05/1.204, allocations: 11.94 kB / 1.404 GB, free: 8.113 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.00012/1.204, allocations: 158.3 kB / 1.404 GB, free: 7.984 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001643/1.205, allocations: 142.2 kB / 1.405 GB, free: 7.855 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.0001815/1.206, allocations: 115.2 kB / 1.405 GB, free: 7.734 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001005/1.207, allocations: 0.7659 MB / 1.405 GB, free: 7.09 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/1.207, allocations: 1.125 kB / 1.405 GB, free: 7.09 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003694/1.207, allocations: 278.7 kB / 1.406 GB, free: 6.855 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003136/1.207, allocations: 35.62 kB / 1.406 GB, free: 6.828 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001036/1.208, allocations: 486.5 kB / 1.406 GB, free: 6.383 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004157/1.209, allocations: 0.8132 MB / 1.407 GB, free: 5.555 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/1.209, allocations: 0 / 1.407 GB, free: 5.555 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat does not exist to compare? outputFormat=mat