Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.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.FixedVoltageSource,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_FixedVoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_FixedVoltageSource",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.822/1.822, allocations: 387.2 MB / 394.5 MB, free: 13.64 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.0009633/0.0009634, allocations: 176 kB / 487 MB, free: 5.383 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.167/1.167, allocations: 221.3 MB / 0.7819 GB, free: 1.375 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.0008775/0.0008775, allocations: 107.1 kB / 0.9213 GB, free: 2.629 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4205/0.4214, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1915/0.6129, allocations: 142.3 MB / 1.205 GB, free: 26.14 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5435/1.156, allocations: 167.8 MB / 1.369 GB, free: 8.18 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002058/1.157, allocations: 90.44 kB / 1.369 GB, free: 8.129 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.02584/1.183, allocations: 13.1 MB / 1.382 GB, free: 13.08 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/1.183, allocations: 8 kB / 1.382 GB, free: 13.07 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005629/1.183, allocations: 75.52 kB / 1.382 GB, free: 13 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002536/1.183, allocations: 225.5 kB / 1.382 GB, free: 12.75 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.222e-05/1.183, allocations: 4 kB / 1.382 GB, free: 12.75 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.547e-05/1.184, allocations: 8 kB / 1.382 GB, free: 12.74 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002514/1.184, allocations: 160.6 kB / 1.383 GB, free: 12.62 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003245/1.184, allocations: 266.9 kB / 1.383 GB, free: 12.38 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/1.184, allocations: 3.938 kB / 1.383 GB, free: 12.38 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.067e-05/1.184, allocations: 0 / 1.383 GB, free: 12.38 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.142e-05/1.184, allocations: 20.12 kB / 1.383 GB, free: 12.36 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001572/1.186, allocations: 1.617 MB / 1.384 GB, free: 10.72 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 8.482e-05/1.186, allocations: 79.69 kB / 1.384 GB, free: 10.63 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.655e-05/1.186, allocations: 43.88 kB / 1.384 GB, free: 10.59 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.119e-05/1.186, allocations: 4 kB / 1.385 GB, free: 10.59 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.849e-05/1.186, allocations: 34.12 kB / 1.385 GB, free: 10.55 MB / 0.823 GB Notification: Performance of pre-optimization done (n=7): time 2.385e-06/1.186, allocations: 3.984 kB / 1.385 GB, free: 10.54 MB / 0.823 GB Notification: Performance of matching and sorting (n=8): time 0.0003934/1.186, allocations: 178.4 kB / 1.385 GB, free: 10.38 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.914e-05/1.186, allocations: 81.14 kB / 1.385 GB, free: 10.28 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001654/1.187, allocations: 196.9 kB / 1.385 GB, free: 10.11 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.333e-05/1.187, allocations: 25.7 kB / 1.385 GB, free: 10.08 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 7.011e-05/1.187, allocations: 163.1 kB / 1.385 GB, free: 9.926 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.82e-05/1.187, allocations: 27.33 kB / 1.385 GB, free: 9.902 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.949e-06/1.187, allocations: 0 / 1.385 GB, free: 9.902 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 8.254e-05/1.187, allocations: 321.6 kB / 1.385 GB, free: 9.582 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.237e-05/1.187, allocations: 72.84 kB / 1.386 GB, free: 9.531 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001397/1.187, allocations: 166.5 kB / 1.386 GB, free: 9.359 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001841/1.187, allocations: 108.6 kB / 1.386 GB, free: 9.281 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-06/1.187, allocations: 0 / 1.386 GB, free: 9.281 MB / 0.823 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003993/1.188, allocations: 267.5 kB / 1.386 GB, free: 9.062 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004326/1.188, allocations: 1.128 MB / 1.387 GB, free: 7.867 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/1.188, allocations: 7.938 kB / 1.387 GB, free: 7.859 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/1.188, allocations: 4 kB / 1.387 GB, free: 7.855 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002459/1.188, allocations: 55.56 kB / 1.387 GB, free: 7.805 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/1.188, allocations: 7.984 kB / 1.387 GB, free: 7.797 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002051/1.189, allocations: 15.98 kB / 1.387 GB, free: 7.781 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.907e-05/1.189, allocations: 8 kB / 1.387 GB, free: 7.773 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 5.43e-06/1.189, allocations: 4 kB / 1.387 GB, free: 7.77 MB / 0.823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003191/1.189, allocations: 199.3 kB / 1.387 GB, free: 7.617 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/1.189, allocations: 4 kB / 1.387 GB, free: 7.613 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.649e-06/1.189, allocations: 4 kB / 1.387 GB, free: 7.609 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001755/1.189, allocations: 43.92 kB / 1.388 GB, free: 7.566 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/1.189, allocations: 7.984 kB / 1.388 GB, free: 7.559 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001381/1.189, allocations: 8.281 kB / 1.388 GB, free: 7.551 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.727e-05/1.189, allocations: 19.25 kB / 1.388 GB, free: 7.535 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.109e-05/1.189, allocations: 108.9 kB / 1.388 GB, free: 7.422 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.687e-05/1.19, allocations: 15.88 kB / 1.388 GB, free: 7.406 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001905/1.19, allocations: 119.5 kB / 1.388 GB, free: 7.301 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/1.19, allocations: 4 kB / 1.388 GB, free: 7.297 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/1.19, allocations: 0 / 1.388 GB, free: 7.297 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/1.19, allocations: 3.938 kB / 1.388 GB, free: 7.293 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006383/1.19, allocations: 0.5847 MB / 1.388 GB, free: 6.695 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/1.19, allocations: 0 / 1.388 GB, free: 6.695 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.018e-05/1.191, allocations: 19.92 kB / 1.388 GB, free: 6.676 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/1.191, allocations: 4 kB / 1.388 GB, free: 6.672 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.298e-05/1.191, allocations: 12.16 kB / 1.388 GB, free: 6.66 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/1.191, allocations: 0 / 1.388 GB, free: 6.66 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.608e-06/1.191, allocations: 4 kB / 1.388 GB, free: 6.656 MB / 0.823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002628/1.191, allocations: 337.1 kB / 1.389 GB, free: 6.273 MB / 0.823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003882/1.191, allocations: 0.7055 MB / 1.389 GB, free: 5.516 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 8.642e-05/1.191, allocations: 104.7 kB / 1.39 GB, free: 5.398 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.692e-05/1.191, allocations: 4 kB / 1.39 GB, free: 5.395 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001483/1.192, allocations: 11.98 kB / 1.39 GB, free: 5.383 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.065e-05/1.192, allocations: 10.53 kB / 1.39 GB, free: 5.375 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.423e-06/1.192, allocations: 4 kB / 1.39 GB, free: 5.371 MB / 0.823 GB Notification: Performance of sort global known variables: time 0.0001283/1.192, allocations: 160.7 kB / 1.39 GB, free: 5.238 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.001795/1.193, allocations: 82.81 kB / 1.39 GB, free: 5.164 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001601/1.194, allocations: 120.3 kB / 1.39 GB, free: 5.039 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.000333/1.194, allocations: 272 kB / 1.39 GB, free: 4.84 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/1.194, allocations: 0 / 1.39 GB, free: 4.84 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 5.288e-05/1.194, allocations: 40.73 kB / 1.39 GB, free: 4.809 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002718/1.194, allocations: 27.58 kB / 1.39 GB, free: 4.789 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005153/1.195, allocations: 269.8 kB / 1.39 GB, free: 4.508 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003541/1.195, allocations: 0.7578 MB / 1.391 GB, free: 3.727 MB / 0.823 GB Notification: Performance of SimCode: time 2.8e-07/1.195, allocations: 8 kB / 1.391 GB, free: 3.719 MB / 0.823 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_FixedVoltageSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_FixedVoltageSource.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource_res.mat does not exist to compare? outputFormat=mat