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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.513/2.513, allocations: 387.1 MB / 399.7 MB, free: 9.457 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.00138/0.00138, allocations: 173 kB / 492.3 MB, free: 0.5859 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.467/1.467, allocations: 221.3 MB / 0.7871 GB, free: 12.88 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.0009385/0.0009386, allocations: 95.94 kB / 0.9267 GB, free: 13.94 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.944e-05/2.976e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.2372, allocations: 142.3 MB / 1.212 GB, free: 38.39 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9434/1.181, allocations: 171.5 MB / 1.38 GB, free: 18.78 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002801/1.181, allocations: 99.36 kB / 1.38 GB, free: 18.77 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0427/1.224, allocations: 18.59 MB / 1.398 GB, free: 27.16 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.194e-06/1.224, allocations: 4 kB / 1.398 GB, free: 27.15 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.194e-05/1.224, allocations: 12 kB / 1.398 GB, free: 27.14 MB / 0.8386 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.001506/1.225, allocations: 0.6186 MB / 1.399 GB, free: 26.5 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.691e-05/1.225, allocations: 8.031 kB / 1.399 GB, free: 26.49 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001607/1.226, allocations: 57.47 kB / 1.399 GB, free: 26.43 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000958/1.227, allocations: 95.53 kB / 1.399 GB, free: 26.34 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005252/1.227, allocations: 286.2 kB / 1.399 GB, free: 26.05 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.7e-05/1.227, allocations: 18.84 kB / 1.399 GB, free: 26.04 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.675e-05/1.227, allocations: 15.5 kB / 1.399 GB, free: 26.02 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000683/1.228, allocations: 376.9 kB / 1.4 GB, free: 25.73 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.409e-05/1.228, allocations: 0 / 1.4 GB, free: 25.73 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.94e-05/1.228, allocations: 10.92 kB / 1.4 GB, free: 25.72 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.555e-05/1.228, allocations: 22.86 kB / 1.4 GB, free: 25.7 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005481/1.229, allocations: 321.1 kB / 1.4 GB, free: 25.48 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002257/1.231, allocations: 1.652 MB / 1.402 GB, free: 23.92 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008821/1.232, allocations: 393.2 kB / 1.402 GB, free: 23.62 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002497/1.232, allocations: 163.2 kB / 1.402 GB, free: 23.51 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001633/1.232, allocations: 89.06 kB / 1.402 GB, free: 23.4 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003397/1.233, allocations: 224.8 kB / 1.402 GB, free: 23.21 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=27): time 2.866e-06/1.233, allocations: 0 / 1.402 GB, free: 23.21 MB / 0.8386 GB Notification: Performance of matching and sorting (n=28): time 0.000952/1.234, allocations: 431.7 kB / 1.403 GB, free: 22.87 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.617e-05/1.234, allocations: 88.34 kB / 1.403 GB, free: 22.77 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001919/1.234, allocations: 198.3 kB / 1.403 GB, free: 22.59 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.263e-05/1.234, allocations: 33.62 kB / 1.403 GB, free: 22.56 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.114e-05/1.234, allocations: 167.2 kB / 1.403 GB, free: 22.42 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.995e-05/1.234, allocations: 91.66 kB / 1.403 GB, free: 22.34 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.015e-05/1.234, allocations: 6.562 kB / 1.403 GB, free: 22.34 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001035/1.234, allocations: 348.9 kB / 1.404 GB, free: 22 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001965/1.234, allocations: 134.1 kB / 1.404 GB, free: 21.91 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002104/1.235, allocations: 209.2 kB / 1.404 GB, free: 21.73 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000253/1.235, allocations: 182 kB / 1.404 GB, free: 21.6 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/1.235, allocations: 0 / 1.404 GB, free: 21.6 MB / 0.8386 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007173/1.236, allocations: 479.4 kB / 1.405 GB, free: 21.23 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004108/1.236, allocations: 0.9033 MB / 1.406 GB, free: 20.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.493e-05/1.236, allocations: 4 kB / 1.406 GB, free: 20.26 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003135/1.236, allocations: 40.5 kB / 1.406 GB, free: 20.22 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005889/1.237, allocations: 95.36 kB / 1.406 GB, free: 20.13 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001769/1.239, allocations: 1.496 MB / 1.407 GB, free: 18.6 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005244/1.239, allocations: 51.73 kB / 1.407 GB, free: 18.55 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.422e-05/1.239, allocations: 15.75 kB / 1.407 GB, free: 18.54 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/1.239, allocations: 5.25 kB / 1.407 GB, free: 18.54 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001057/1.24, allocations: 411.1 kB / 1.408 GB, free: 18.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/1.24, allocations: 4 kB / 1.408 GB, free: 18.22 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001928/1.241, allocations: 39.89 kB / 1.408 GB, free: 18.19 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005333/1.241, allocations: 87.44 kB / 1.408 GB, free: 18.11 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001491/1.243, allocations: 1.483 MB / 1.409 GB, free: 16.58 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004882/1.243, allocations: 50.53 kB / 1.409 GB, free: 16.54 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.707e-05/1.243, allocations: 19.11 kB / 1.409 GB, free: 16.52 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.0002103/1.244, allocations: 129.1 kB / 1.409 GB, free: 16.39 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.905e-05/1.244, allocations: 23.72 kB / 1.409 GB, free: 16.37 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001003/1.245, allocations: 395.7 kB / 1.41 GB, free: 16.09 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/1.245, allocations: 7.984 kB / 1.41 GB, free: 16.08 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/1.245, allocations: 0 / 1.41 GB, free: 16.08 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/1.245, allocations: 0 / 1.41 GB, free: 16.08 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009399/1.246, allocations: 0.5632 MB / 1.41 GB, free: 15.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/1.246, allocations: 96 / 1.41 GB, free: 15.55 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005542/1.246, allocations: 87.3 kB / 1.41 GB, free: 15.46 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001772/1.246, allocations: 32.58 kB / 1.41 GB, free: 15.43 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.982e-05/1.246, allocations: 15.42 kB / 1.41 GB, free: 15.42 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001523/1.248, allocations: 1.417 MB / 1.412 GB, free: 13.96 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/1.248, allocations: 0 / 1.412 GB, free: 13.96 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009891/1.249, allocations: 0.506 MB / 1.412 GB, free: 13.5 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002052/1.249, allocations: 138.9 kB / 1.412 GB, free: 13.35 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.032e-05/1.249, allocations: 7.25 kB / 1.412 GB, free: 13.35 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004939/1.25, allocations: 47.14 kB / 1.413 GB, free: 13.31 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001471/1.25, allocations: 31.39 kB / 1.413 GB, free: 13.28 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.143e-05/1.25, allocations: 15.27 kB / 1.413 GB, free: 13.27 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002659/1.25, allocations: 165.9 kB / 1.413 GB, free: 13.13 MB / 0.8386 GB Notification: Performance of sort global known variables: time 3.6e-07/1.25, allocations: 0 / 1.413 GB, free: 13.13 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001098/1.251, allocations: 145.2 kB / 1.413 GB, free: 13 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.001653/1.253, allocations: 1.278 MB / 1.414 GB, free: 11.77 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.002175/1.255, allocations: 0.8661 MB / 1.415 GB, free: 11.02 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/1.255, allocations: 4.25 kB / 1.415 GB, free: 11.02 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0006892/1.256, allocations: 288.3 kB / 1.415 GB, free: 10.78 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005346/1.257, allocations: 44.58 kB / 1.415 GB, free: 10.75 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002086/1.259, allocations: 0.5474 MB / 1.416 GB, free: 10.23 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005936/1.259, allocations: 0.7953 MB / 1.417 GB, free: 9.422 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0006257/1.26, allocations: 93.98 kB / 1.417 GB, free: 9.328 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002497/1.26, allocations: 92.83 kB / 1.417 GB, free: 9.289 MB / 0.8386 GB Notification: Performance of SimCode: time 7.82e-07/1.26, allocations: 0 / 1.417 GB, free: 9.289 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03202/1.292, allocations: 6.841 MB / 1.423 GB, free: 2.668 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000342/1.293, allocations: 197.2 kB / 1.424 GB, free: 2.438 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.053/3.346, allocations: 4.062 kB / 1.424 GB, free: 2.434 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