Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_ParallelResistors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_ParallelResistors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001208/0.001208, allocations: 100.1 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001616/0.001616, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 223.2 MB / 239.9 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.495/2.495, allocations: 390.3 MB / 0.6653 GB, free: 2.996 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003681/0.0003683, allocations: 8 kB / 0.8146 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8515/0.8519, allocations: 142.3 MB / 0.9536 GB, free: 8.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors): time 0.002968/0.8549, allocations: 2.236 MB / 0.9558 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001738/0.8567, allocations: 1.203 MB / 0.957 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.8568, allocations: 2.656 kB / 0.957 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001275/0.8569, allocations: 25.05 kB / 0.957 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003519/0.8573, allocations: 109.2 kB / 0.9571 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003261/0.8576, allocations: 133.4 kB / 0.9572 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002477/0.8579, allocations: 154.1 kB / 0.9574 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004672/0.8583, allocations: 295.9 kB / 0.9576 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001443/0.8585, allocations: 79.52 kB / 0.9577 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001986/0.8587, allocations: 82.81 kB / 0.9578 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.534e-05/0.8587, allocations: 8.094 kB / 0.9578 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000159/0.8589, allocations: 72.67 kB / 0.9579 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.435e-05/0.859, allocations: 48.33 kB / 0.9579 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.801e-05/0.859, allocations: 61.36 kB / 0.958 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002286/0.8593, allocations: 206 kB / 0.9582 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.8593, allocations: 0 / 0.9582 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.944e-06/0.8593, allocations: 0 / 0.9582 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.8593, allocations: 1.344 kB / 0.9582 GB, free: 4.57 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0006559/0.86, allocations: 475.7 kB / 0.9586 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.86, allocations: 9.625 kB / 0.9586 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.886e-05/0.8601, allocations: 57.42 kB / 0.9587 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005289/0.8606, allocations: 78.12 kB / 0.9588 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002507/0.8609, allocations: 234 kB / 0.959 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.576e-05/0.8609, allocations: 9.656 kB / 0.959 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.042e-05/0.8609, allocations: 12.94 kB / 0.959 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005182/0.8615, allocations: 314.5 kB / 0.9593 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.8615, allocations: 1.281 kB / 0.9593 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.586e-05/0.8615, allocations: 13.22 kB / 0.9593 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.268e-05/0.8616, allocations: 26.59 kB / 0.9594 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005168/0.8621, allocations: 276.2 kB / 0.9596 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001402/0.8635, allocations: 1.501 MB / 0.9611 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004777/0.864, allocations: 251.4 kB / 0.9613 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.535e-05/0.864, allocations: 18.17 kB / 0.9613 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.972e-05/0.864, allocations: 35.62 kB / 0.9614 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/0.8641, allocations: 1.094 kB / 0.9614 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15): time 0.000794/0.8649, allocations: 362.7 kB / 0.9617 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.476e-05/0.8649, allocations: 79.58 kB / 0.9618 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001471/0.8651, allocations: 176 kB / 0.962 GB, free: 1.332 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.11e-05/0.8651, allocations: 30.67 kB / 0.962 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.137e-05/0.8652, allocations: 137.1 kB / 0.9621 GB, free: 1.168 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.154e-05/0.8652, allocations: 54.38 kB / 0.9622 GB, free: 1.121 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.259e-05/0.8652, allocations: 5.062 kB / 0.9622 GB, free: 1.117 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.791e-05/0.8653, allocations: 326.8 kB / 0.9625 GB, free: 0.793 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002205/0.8655, allocations: 99.84 kB / 0.9626 GB, free: 0.75 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002491/0.8658, allocations: 184.2 kB / 0.9628 GB, free: 0.6055 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002424/0.866, allocations: 134.6 kB / 0.9629 GB, free: 0.5391 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.866, allocations: 1.219 kB / 0.9629 GB, free: 0.5391 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005394/0.8666, allocations: 317.7 kB / 0.9632 GB, free: 380 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002505/0.8668, allocations: 0.6977 MB / 0.9639 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.8669, allocations: 1.969 kB / 0.9639 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.8669, allocations: 7.344 kB / 0.9639 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000296/0.8672, allocations: 61.33 kB / 0.9639 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.8672, allocations: 6.891 kB / 0.964 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002018/0.8674, allocations: 32.2 kB / 0.964 GB, free: 15.58 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.265e-05/0.8675, allocations: 10.55 kB / 0.964 GB, free: 15.58 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 8.005e-06/0.8675, allocations: 3.656 kB / 0.964 GB, free: 15.58 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004969/0.868, allocations: 246 kB / 0.9642 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.868, allocations: 4.984 kB / 0.9642 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.589e-06/0.868, allocations: 3.531 kB / 0.9642 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002194/0.8682, allocations: 55.55 kB / 0.9643 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.591e-06/0.8682, allocations: 7.125 kB / 0.9643 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001591/0.8684, allocations: 29.61 kB / 0.9643 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.751e-05/0.8684, allocations: 6.562 kB / 0.9643 GB, free: 15.43 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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 0.0001697/0.8686, allocations: 223.3 kB / 0.9645 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.995e-05/0.8687, allocations: 16 kB / 0.9646 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005679/0.8692, allocations: 284.5 kB / 0.9648 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.8693, allocations: 2.312 kB / 0.9648 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/0.8693, allocations: 0 / 0.9648 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.8693, allocations: 5.234 kB / 0.9648 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001095/0.8704, allocations: 0.6915 MB / 0.9655 GB, free: 14.48 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.8704, allocations: 7.672 kB / 0.9655 GB, free: 14.48 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002386/0.8706, allocations: 50.23 kB / 0.9656 GB, free: 14.46 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.8707, allocations: 11.41 kB / 0.9656 GB, free: 14.45 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.651e-05/0.8707, allocations: 3.25 kB / 0.9656 GB, free: 14.45 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.8707, allocations: 3.062 kB / 0.9656 GB, free: 14.45 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.8707, allocations: 0 / 0.9656 GB, free: 14.45 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006153/0.8713, allocations: 0.504 MB / 0.9661 GB, free: 14.01 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001305/0.8715, allocations: 123.5 kB / 0.9662 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.435e-05/0.8715, allocations: 6.766 kB / 0.9662 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002256/0.8717, allocations: 20.52 kB / 0.9662 GB, free: 13.88 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.589e-05/0.8718, allocations: 9.984 kB / 0.9662 GB, free: 13.88 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.394e-05/0.8718, allocations: 4.969 kB / 0.9662 GB, free: 13.88 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001319/0.872, allocations: 138.5 kB / 0.9664 GB, free: 13.77 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.872, allocations: 1 kB / 0.9664 GB, free: 13.77 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005161/0.8725, allocations: 84.47 kB / 0.9664 GB, free: 13.75 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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.001/0.8735, allocations: 1.401 MB / 0.9678 GB, free: 12.43 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0008097/0.8743, allocations: 385.7 kB / 0.9682 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.8743, allocations: 0 / 0.9682 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002374/0.8746, allocations: 120 kB / 0.9683 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003622/0.8749, allocations: 42.95 kB / 0.9683 GB, free: 12.19 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00243/0.8774, allocations: 2.302 MB / 0.9706 GB, free: 10.22 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003348/0.8777, allocations: 0.7488 MB / 0.9713 GB, free: 9.488 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002424/0.878, allocations: 74.34 kB / 0.9714 GB, free: 9.457 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001236/0.8781, allocations: 61.16 kB / 0.9714 GB, free: 9.406 MB / 0.7325 GB Notification: Performance of SimCode: time 3.5e-07/0.8781, allocations: 0 / 0.9714 GB, free: 9.406 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01495/0.8931, allocations: 3.737 MB / 0.9751 GB, free: 7.688 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001804/0.8933, allocations: 213.9 kB / 0.9753 GB, free: 7.434 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.74/2.633, allocations: 0.9844 kB / 0.9753 GB, free: 7.434 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_ParallelResistors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_ParallelResistors.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors_res.mat does not exist to compare? outputFormat=mat