Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_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.337/2.337, allocations: 387.4 MB / 394.9 MB, free: 13.44 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.001144/0.001143, allocations: 188.5 kB / 487.4 MB, free: 5.074 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.556/1.556, allocations: 221.5 MB / 0.7824 GB, free: 1 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.0008318/0.0008317, allocations: 106.1 kB / 0.9219 GB, free: 2.234 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.376e-05/2.378e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3113/0.3113, allocations: 142.4 MB / 1.206 GB, free: 43.88 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.044/1.355, allocations: 172.2 MB / 1.374 GB, free: 18.11 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002394/1.356, allocations: 100.5 kB / 1.374 GB, free: 18.11 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0421/1.398, allocations: 19.2 MB / 1.393 GB, free: 27.54 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.663e-06/1.398, allocations: 0 / 1.393 GB, free: 27.54 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.106e-05/1.398, allocations: 3.875 kB / 1.393 GB, free: 27.54 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.001067/1.399, allocations: 0.6127 MB / 1.394 GB, free: 27 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/1.399, allocations: 12.31 kB / 1.394 GB, free: 27 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007542/1.4, allocations: 100.5 kB / 1.394 GB, free: 26.96 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003095/1.4, allocations: 279.5 kB / 1.394 GB, free: 26.72 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.775e-05/1.4, allocations: 3.969 kB / 1.394 GB, free: 26.72 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.691e-05/1.4, allocations: 15.28 kB / 1.394 GB, free: 26.72 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003584/1.4, allocations: 246 kB / 1.394 GB, free: 26.69 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004348/1.401, allocations: 339.8 kB / 1.395 GB, free: 26.54 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/1.401, allocations: 0 / 1.395 GB, free: 26.54 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.52e-05/1.401, allocations: 3.984 kB / 1.395 GB, free: 26.53 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.721e-05/1.401, allocations: 27.11 kB / 1.395 GB, free: 26.52 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001691/1.403, allocations: 1.601 MB / 1.396 GB, free: 25.28 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006652/1.403, allocations: 390.4 kB / 1.397 GB, free: 25.16 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001758/1.404, allocations: 151 kB / 1.397 GB, free: 25.13 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001451/1.404, allocations: 92.58 kB / 1.397 GB, free: 25.03 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000282/1.404, allocations: 218.1 kB / 1.397 GB, free: 24.92 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=27): time 1.793e-06/1.404, allocations: 4 kB / 1.397 GB, free: 24.92 MB / 0.8386 GB Notification: Performance of matching and sorting (n=28): time 0.0008345/1.405, allocations: 426.8 kB / 1.397 GB, free: 24.76 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.761e-05/1.405, allocations: 80.67 kB / 1.398 GB, free: 24.66 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001644/1.405, allocations: 194.9 kB / 1.398 GB, free: 24.55 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.814e-05/1.405, allocations: 25.7 kB / 1.398 GB, free: 24.52 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.475e-05/1.405, allocations: 163.4 kB / 1.398 GB, free: 24.39 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.709e-05/1.405, allocations: 91.31 kB / 1.398 GB, free: 24.32 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.045e-05/1.405, allocations: 96 / 1.398 GB, free: 24.32 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001197/1.405, allocations: 336 kB / 1.398 GB, free: 24 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001564/1.406, allocations: 126.4 kB / 1.398 GB, free: 23.99 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001806/1.406, allocations: 193.4 kB / 1.399 GB, free: 23.9 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002486/1.406, allocations: 162.7 kB / 1.399 GB, free: 23.86 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/1.406, allocations: 7.781 kB / 1.399 GB, free: 23.86 MB / 0.8386 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000624/1.407, allocations: 435 kB / 1.399 GB, free: 23.73 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003286/1.407, allocations: 0.9029 MB / 1.4 GB, free: 22.78 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/1.407, allocations: 3.844 kB / 1.4 GB, free: 22.78 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002046/1.407, allocations: 41.97 kB / 1.4 GB, free: 22.76 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003799/1.408, allocations: 96.45 kB / 1.4 GB, free: 22.73 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001122/1.409, allocations: 1.432 MB / 1.402 GB, free: 21.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003269/1.409, allocations: 50.78 kB / 1.402 GB, free: 21.4 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.956e-05/1.409, allocations: 10.59 kB / 1.402 GB, free: 21.4 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 7.334e-06/1.409, allocations: 3.906 kB / 1.402 GB, free: 21.4 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006012/1.41, allocations: 360.9 kB / 1.402 GB, free: 21.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/1.41, allocations: 3.953 kB / 1.402 GB, free: 21.32 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001099/1.41, allocations: 42.58 kB / 1.402 GB, free: 21.3 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003347/1.41, allocations: 88.67 kB / 1.402 GB, free: 21.28 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009478/1.411, allocations: 1.42 MB / 1.404 GB, free: 19.97 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002921/1.411, allocations: 50.75 kB / 1.404 GB, free: 19.95 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.612e-05/1.411, allocations: 11.67 kB / 1.404 GB, free: 19.95 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.0001484/1.412, allocations: 116.2 kB / 1.404 GB, free: 19.84 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005845/1.412, allocations: 357.4 kB / 1.404 GB, free: 19.72 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.679e-05/1.412, allocations: 27.22 kB / 1.404 GB, free: 19.71 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006259/1.413, allocations: 387.4 kB / 1.404 GB, free: 19.57 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/1.413, allocations: 3.844 kB / 1.404 GB, free: 19.57 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/1.413, allocations: 0 / 1.404 GB, free: 19.57 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/1.413, allocations: 7.797 kB / 1.404 GB, free: 19.57 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005374/1.413, allocations: 0.5049 MB / 1.405 GB, free: 19.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/1.414, allocations: 3.906 kB / 1.405 GB, free: 19.2 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003649/1.414, allocations: 77.73 kB / 1.405 GB, free: 19.18 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001125/1.414, allocations: 35.27 kB / 1.405 GB, free: 19.16 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.336e-05/1.414, allocations: 3.844 kB / 1.405 GB, free: 19.16 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009953/1.415, allocations: 1.359 MB / 1.406 GB, free: 17.9 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.74e-06/1.415, allocations: 3.953 kB / 1.406 GB, free: 17.89 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006035/1.416, allocations: 0.4928 MB / 1.407 GB, free: 17.61 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001228/1.416, allocations: 138.1 kB / 1.407 GB, free: 17.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.262e-05/1.416, allocations: 7.844 kB / 1.407 GB, free: 17.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002976/1.416, allocations: 38.2 kB / 1.407 GB, free: 17.46 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/1.416, allocations: 29.45 kB / 1.407 GB, free: 17.45 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.738e-05/1.416, allocations: 18.47 kB / 1.407 GB, free: 17.45 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001347/1.416, allocations: 159.6 kB / 1.407 GB, free: 17.36 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.2e-07/1.416, allocations: 0 / 1.407 GB, free: 17.36 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0006681/1.417, allocations: 131.2 kB / 1.407 GB, free: 17.35 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.001114/1.418, allocations: 1.26 MB / 1.409 GB, free: 16.32 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001124/1.419, allocations: 0.8236 MB / 1.409 GB, free: 15.91 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/1.419, allocations: 4.062 kB / 1.409 GB, free: 15.91 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003399/1.42, allocations: 276.4 kB / 1.41 GB, free: 15.78 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003651/1.42, allocations: 32.88 kB / 1.41 GB, free: 15.78 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001088/1.421, allocations: 0.5275 MB / 1.41 GB, free: 15.48 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004418/1.422, allocations: 0.7945 MB / 1.411 GB, free: 14.73 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0003135/1.422, allocations: 98.16 kB / 1.411 GB, free: 14.69 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001436/1.422, allocations: 81.91 kB / 1.411 GB, free: 14.68 MB / 0.8386 GB Notification: Performance of SimCode: time 3.7e-07/1.422, allocations: 4 kB / 1.411 GB, free: 14.67 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0284/1.451, allocations: 6.294 MB / 1.417 GB, free: 8.742 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002779/1.451, allocations: 184.5 kB / 1.417 GB, free: 8.539 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.035/3.486, allocations: 3.281 kB / 1.417 GB, free: 8.539 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource_res.mat does not exist to compare? outputFormat=mat