Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.DC.Loads.Examples.LinearizedLoad,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad",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.005481/0.005481, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001224/0.001224, allocations: 191.3 kB / 16.67 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.453/2.453, allocations: 437 MB / 0.7105 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 67.89 kB / 1.018 GB, free: 9.902 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8406/0.8419, allocations: 151.6 MB / 1.166 GB, free: 3.746 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.005973/0.848, allocations: 4.096 MB / 1.17 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.002775/0.8508, allocations: 1.597 MB / 1.172 GB, free: 14.03 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003307/0.8511, allocations: 11.94 kB / 1.172 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001813/0.853, allocations: 0.5895 MB / 1.172 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0006871/0.8537, allocations: 234.8 kB / 1.173 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006087/0.8543, allocations: 215.5 kB / 1.173 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0007173/0.855, allocations: 0.5452 MB / 1.173 GB, free: 12.44 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007794/0.8558, allocations: 476 kB / 1.174 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003801/0.8562, allocations: 231.3 kB / 1.174 GB, free: 11.74 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000515/0.8567, allocations: 247.1 kB / 1.174 GB, free: 11.5 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 9.853e-05/0.8568, allocations: 39.94 kB / 1.174 GB, free: 11.46 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003822/0.8572, allocations: 171.6 kB / 1.174 GB, free: 11.29 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001866/0.8574, allocations: 139.7 kB / 1.174 GB, free: 11.16 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0002686/0.8577, allocations: 199.1 kB / 1.175 GB, free: 10.96 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0007363/0.8584, allocations: 0.5257 MB / 1.175 GB, free: 10.43 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.8585, allocations: 0 / 1.175 GB, free: 10.43 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.623e-06/0.8585, allocations: 0 / 1.175 GB, free: 10.43 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.827e-05/0.8585, allocations: 4 kB / 1.175 GB, free: 10.43 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001428/0.8599, allocations: 0.6748 MB / 1.176 GB, free: 9.707 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.86, allocations: 16.86 kB / 1.176 GB, free: 9.691 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001/0.8601, allocations: 78.7 kB / 1.176 GB, free: 9.605 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007357/0.8608, allocations: 104.5 kB / 1.176 GB, free: 9.504 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00042/0.8613, allocations: 307.5 kB / 1.176 GB, free: 9.164 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.194e-05/0.8613, allocations: 55.27 kB / 1.176 GB, free: 9.105 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.209e-05/0.8614, allocations: 28.38 kB / 1.176 GB, free: 9.078 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007745/0.8622, allocations: 0.5046 MB / 1.177 GB, free: 8.551 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/0.8622, allocations: 3.938 kB / 1.177 GB, free: 8.547 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.878e-05/0.8623, allocations: 12 kB / 1.177 GB, free: 8.535 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.73e-05/0.8623, allocations: 32.98 kB / 1.177 GB, free: 8.504 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006624/0.863, allocations: 383.7 kB / 1.177 GB, free: 8.129 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002446/0.8654, allocations: 2.2 MB / 1.179 GB, free: 5.699 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006748/0.8661, allocations: 254.7 kB / 1.18 GB, free: 5.441 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003303/0.8665, allocations: 144.8 kB / 1.18 GB, free: 5.297 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.068e-05/0.8665, allocations: 11.92 kB / 1.18 GB, free: 5.285 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.771e-05/0.8665, allocations: 34.56 kB / 1.18 GB, free: 5.242 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=19): time 2.134e-06/0.8665, allocations: 0 / 1.18 GB, free: 5.242 MB / 0.9044 GB Notification: Performance of matching and sorting (n=19): time 0.0015/0.8681, allocations: 0.5728 MB / 1.18 GB, free: 4.621 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.439e-05/0.8681, allocations: 55.41 kB / 1.181 GB, free: 4.555 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002184/0.8683, allocations: 221 kB / 1.181 GB, free: 4.336 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.695e-05/0.8684, allocations: 33.7 kB / 1.181 GB, free: 4.297 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001352/0.8685, allocations: 211.6 kB / 1.181 GB, free: 4.086 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 5.839e-05/0.8686, allocations: 67.09 kB / 1.181 GB, free: 4.02 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.663e-05/0.8687, allocations: 57.59 kB / 1.181 GB, free: 3.957 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.000117/0.8688, allocations: 334.8 kB / 1.181 GB, free: 3.621 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002219/0.869, allocations: 100.8 kB / 1.181 GB, free: 3.52 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002619/0.8693, allocations: 191 kB / 1.182 GB, free: 3.293 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000444/0.8698, allocations: 275.6 kB / 1.182 GB, free: 2.992 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.8698, allocations: 3.938 kB / 1.182 GB, free: 2.988 MB / 0.9044 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008416/0.8706, allocations: 373.1 kB / 1.182 GB, free: 2.613 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.8706, allocations: 4.312 kB / 1.182 GB, free: 2.609 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.8707, allocations: 8 kB / 1.182 GB, free: 2.602 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004966/0.8712, allocations: 109.6 kB / 1.182 GB, free: 2.488 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002133/0.8714, allocations: 51.84 kB / 1.182 GB, free: 2.438 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003226/0.8746, allocations: 3.059 MB / 1.185 GB, free: 15.09 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002873/0.8749, allocations: 31.69 kB / 1.185 GB, free: 15.05 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.944e-05/0.875, allocations: 11.98 kB / 1.185 GB, free: 15.04 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003589/0.8753, allocations: 224.1 kB / 1.186 GB, free: 14.82 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002728/0.8756, allocations: 175 kB / 1.186 GB, free: 14.61 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004837/0.8761, allocations: 269.2 kB / 1.186 GB, free: 14.31 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.835e-06/0.8761, allocations: 0 / 1.186 GB, free: 14.31 MB / 0.92 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0007818/0.8769, allocations: 351.8 kB / 1.186 GB, free: 13.96 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.877, allocations: 4 kB / 1.186 GB, free: 13.96 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.877, allocations: 4 kB / 1.186 GB, free: 13.95 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003121/0.8773, allocations: 80.91 kB / 1.187 GB, free: 13.87 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002211/0.8775, allocations: 55.91 kB / 1.187 GB, free: 13.82 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00194/0.8795, allocations: 1.61 MB / 1.188 GB, free: 12.07 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002799/0.8798, allocations: 31.67 kB / 1.188 GB, free: 12.04 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.097e-05/0.8798, allocations: 16 kB / 1.188 GB, free: 12.02 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001645/0.88, allocations: 200.9 kB / 1.188 GB, free: 11.82 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.222e-05/0.88, allocations: 23.8 kB / 1.188 GB, free: 11.8 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.415e-05/0.8801, allocations: 30.17 kB / 1.188 GB, free: 11.76 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.8801, allocations: 4 kB / 1.188 GB, free: 11.76 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.8801, allocations: 3.938 kB / 1.188 GB, free: 11.75 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.8801, allocations: 0 / 1.188 GB, free: 11.75 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00138/0.8815, allocations: 0.8239 MB / 1.189 GB, free: 10.85 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.8815, allocations: 0 / 1.189 GB, free: 10.85 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001426/0.8817, allocations: 35.92 kB / 1.189 GB, free: 10.82 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003787/0.8821, allocations: 105.7 kB / 1.189 GB, free: 10.71 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.725e-05/0.8821, allocations: 8 kB / 1.189 GB, free: 10.7 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002916/0.885, allocations: 3.02 MB / 1.192 GB, free: 7.402 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.8851, allocations: 0 / 1.192 GB, free: 7.402 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008524/0.8859, allocations: 419.1 kB / 1.193 GB, free: 6.965 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001291/0.8861, allocations: 116.8 kB / 1.193 GB, free: 6.832 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.198e-05/0.8861, allocations: 11.98 kB / 1.193 GB, free: 6.82 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001715/0.8863, allocations: 8 kB / 1.193 GB, free: 6.812 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.578e-05/0.8864, allocations: 19.97 kB / 1.193 GB, free: 6.793 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.585e-05/0.8864, allocations: 4 kB / 1.193 GB, free: 6.789 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001622/0.8866, allocations: 164.5 kB / 1.193 GB, free: 6.629 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.9e-07/0.8866, allocations: 0 / 1.193 GB, free: 6.629 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0006708/0.8872, allocations: 175.3 kB / 1.193 GB, free: 6.457 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001147/0.8884, allocations: 0.9518 MB / 1.194 GB, free: 5.469 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.00196/0.8904, allocations: 0.7623 MB / 1.195 GB, free: 4.668 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 4.207e-06/0.8904, allocations: 4.125 kB / 1.195 GB, free: 4.664 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0007424/0.8912, allocations: 369.1 kB / 1.195 GB, free: 4.277 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004741/0.8916, allocations: 68.58 kB / 1.195 GB, free: 4.207 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004403/0.8961, allocations: 2.84 MB / 1.198 GB, free: 1.211 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004797/0.8966, allocations: 0.8145 MB / 1.199 GB, free: 380 kB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.000227/0.8968, allocations: 58.23 kB / 1.199 GB, free: 316 kB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001418/0.897, allocations: 99.39 kB / 1.199 GB, free: 220 kB / 0.92 GB Notification: Performance of SimCode: time 6.31e-07/0.897, allocations: 0 / 1.199 GB, free: 220 kB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03351/0.9305, allocations: 7.37 MB / 1.206 GB, free: 9.016 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/12.5, allocations: 11.92 kB / 1.206 GB, free: 9.004 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad.fmu > Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.mat does not exist to compare? outputFormat=mat