Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.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.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",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.001133/0.001132, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001541/0.001541, allocations: 168.7 kB / 15.95 MB, free: 204 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.484/1.484, allocations: 223.2 MB / 240 MB, free: 5.387 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.609/2.609, allocations: 390.4 MB / 0.6655 GB, free: 2.898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003772/0.0003774, allocations: 8 kB / 0.8149 GB, free: 14.09 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7591/0.7595, allocations: 142.3 MB / 0.9538 GB, free: 8.047 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.002751/0.7623, allocations: 2.13 MB / 0.9559 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001147/0.7635, allocations: 0.7295 MB / 0.9566 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001004/0.7636, allocations: 7.031 kB / 0.9566 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001479/0.7637, allocations: 27.78 kB / 0.9567 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002404/0.764, allocations: 77.22 kB / 0.9567 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002616/0.7643, allocations: 83.77 kB / 0.9568 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002534/0.7645, allocations: 239.1 kB / 0.9571 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002389/0.7648, allocations: 175.3 kB / 0.9572 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.406e-05/0.7649, allocations: 66.28 kB / 0.9573 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002069/0.7651, allocations: 83.16 kB / 0.9574 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.251e-05/0.7651, allocations: 7.188 kB / 0.9574 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001264/0.7653, allocations: 57.61 kB / 0.9574 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.906e-05/0.7653, allocations: 48.97 kB / 0.9575 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.559e-05/0.7654, allocations: 50.64 kB / 0.9575 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001846/0.7655, allocations: 166.2 kB / 0.9577 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.7656, allocations: 0 / 0.9577 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.553e-06/0.7656, allocations: 1.438 kB / 0.9577 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.67e-06/0.7656, allocations: 0 / 0.9577 GB, free: 5.109 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0004521/0.766, allocations: 436.3 kB / 0.9581 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.7661, allocations: 8.938 kB / 0.9581 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.934e-05/0.7661, allocations: 49.73 kB / 0.9582 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003236/0.7664, allocations: 39.88 kB / 0.9582 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001675/0.7666, allocations: 214.2 kB / 0.9584 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.633e-05/0.7666, allocations: 9.594 kB / 0.9584 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.945e-05/0.7667, allocations: 12.91 kB / 0.9584 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003445/0.767, allocations: 228.4 kB / 0.9586 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.7671, allocations: 0 / 0.9586 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.887e-05/0.7671, allocations: 9.359 kB / 0.9586 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.48e-05/0.7671, allocations: 15.95 kB / 0.9587 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002226/0.7673, allocations: 141.9 kB / 0.9588 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007981/0.7681, allocations: 1.135 MB / 0.9599 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.64e-05/0.7682, allocations: 45.97 kB / 0.9599 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.832e-05/0.7683, allocations: 14.55 kB / 0.96 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.113e-05/0.7683, allocations: 0 / 0.96 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.717e-05/0.7683, allocations: 36.45 kB / 0.96 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 9.11e-07/0.7683, allocations: 0 / 0.96 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0001714/0.7685, allocations: 79.17 kB / 0.9601 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.917e-05/0.7685, allocations: 55.41 kB / 0.9601 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001267/0.7686, allocations: 177.3 kB / 0.9603 GB, free: 2.605 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.207e-06/0.7687, allocations: 25.7 kB / 0.9603 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.431e-05/0.7687, allocations: 140.7 kB / 0.9605 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.008e-05/0.7687, allocations: 10.12 kB / 0.9605 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.583e-06/0.7687, allocations: 4.844 kB / 0.9605 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.208e-05/0.7688, allocations: 329.4 kB / 0.9608 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.469e-05/0.7689, allocations: 18.67 kB / 0.9608 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.968e-05/0.7689, allocations: 90.03 kB / 0.9609 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.812e-05/0.769, allocations: 37.86 kB / 0.9609 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.769, allocations: 5.312 kB / 0.9609 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001657/0.7692, allocations: 128.4 kB / 0.961 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.089e-05/0.7692, allocations: 159.2 kB / 0.9612 GB, free: 1.707 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.7692, allocations: 10.62 kB / 0.9612 GB, free: 1.699 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.7693, allocations: 4.125 kB / 0.9612 GB, free: 1.699 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001028/0.7694, allocations: 27.23 kB / 0.9612 GB, free: 1.691 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.7694, allocations: 4.125 kB / 0.9612 GB, free: 1.691 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.463e-05/0.7695, allocations: 17.25 kB / 0.9613 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.098e-05/0.7695, allocations: 9.453 kB / 0.9613 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.991e-06/0.7695, allocations: 8.062 kB / 0.9613 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001237/0.7696, allocations: 99.89 kB / 0.9614 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.7696, allocations: 2.75 kB / 0.9614 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.489e-06/0.7696, allocations: 8.062 kB / 0.9614 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.918e-05/0.7697, allocations: 23.23 kB / 0.9614 GB, free: 1.613 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.767e-06/0.7697, allocations: 2.75 kB / 0.9614 GB, free: 1.613 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.037e-05/0.7698, allocations: 9.75 kB / 0.9614 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.7698, allocations: 9.5 kB / 0.9614 GB, free: 1.605 MB / 0.7169 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 (14): * Single equations (assignments): 14 * 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 7.666e-05/0.7699, allocations: 217.4 kB / 0.9616 GB, free: 1.395 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.816e-05/0.7699, allocations: 15.89 kB / 0.9616 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.657e-05/0.7699, allocations: 17.05 kB / 0.9617 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.7699, allocations: 0 / 0.9617 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.7699, allocations: 5.375 kB / 0.9617 GB, free: 1.367 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.7699, allocations: 0 / 0.9617 GB, free: 1.367 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003003/0.7702, allocations: 477.2 kB / 0.9621 GB, free: 0.8867 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.7703, allocations: 1.969 kB / 0.9621 GB, free: 0.8867 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.027e-05/0.7703, allocations: 9.938 kB / 0.9621 GB, free: 0.8828 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.7703, allocations: 1.031 kB / 0.9621 GB, free: 0.8828 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.063e-06/0.7703, allocations: 1 kB / 0.9621 GB, free: 0.8828 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.7703, allocations: 2.094 kB / 0.9621 GB, free: 0.8828 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.7703, allocations: 1.156 kB / 0.9621 GB, free: 0.8828 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.601e-05/0.7704, allocations: 118.5 kB / 0.9623 GB, free: 0.7617 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.495e-05/0.7705, allocations: 93.55 kB / 0.9623 GB, free: 0.6562 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.879e-05/0.7705, allocations: 6.609 kB / 0.9623 GB, free: 0.6523 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.219e-05/0.7705, allocations: 1.312 kB / 0.9623 GB, free: 0.6523 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.791e-05/0.7705, allocations: 5.844 kB / 0.9624 GB, free: 0.6484 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-06/0.7706, allocations: 2.125 kB / 0.9624 GB, free: 0.6484 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.155e-05/0.7706, allocations: 129.2 kB / 0.9625 GB, free: 0.5469 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7706, allocations: 1.031 kB / 0.9625 GB, free: 0.5469 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003343/0.771, allocations: 51.34 kB / 0.9625 GB, free: 0.5352 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * 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.000268/0.7712, allocations: 0.6509 MB / 0.9632 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002398/0.7715, allocations: 112 kB / 0.9633 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.7715, allocations: 4.125 kB / 0.9633 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 4.764e-05/0.7716, allocations: 18.98 kB / 0.9633 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002968/0.7719, allocations: 16.38 kB / 0.9633 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001377/0.7733, allocations: 0.808 MB / 0.9641 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003383/0.7736, allocations: 0.7172 MB / 0.9648 GB, free: 14.42 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 9.743e-05/0.7737, allocations: 34.94 kB / 0.9648 GB, free: 14.4 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.741e-05/0.7738, allocations: 36.77 kB / 0.9649 GB, free: 14.37 MB / 0.7325 GB Notification: Performance of SimCode: time 2.81e-07/0.7738, allocations: 0.8438 kB / 0.9649 GB, free: 14.37 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01245/0.7863, allocations: 2.143 MB / 0.967 GB, free: 13.4 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003645/0.7867, allocations: 199.7 kB / 0.9672 GB, free: 13.15 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.717/2.503, allocations: 0 / 0.9672 GB, free: 13.15 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.fmu > Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat does not exist to compare? outputFormat=mat