Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.418/2.418, allocations: 393.5 MB / 408.4 MB, free: 11.02 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.001537/0.001537, allocations: 172 kB / 0.4901 GB, free: 2.262 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.638/1.638, allocations: 223.1 MB / 0.7992 GB, free: 14.75 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.0009153/0.0009154, allocations: 98.03 kB / 0.9396 GB, free: 1.93 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003846/0.0003849, allocations: 10.31 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2915, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.23/0.5215, allocations: 177.2 MB / 1.402 GB, free: 8.273 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003041/0.5218, allocations: 103.9 kB / 1.402 GB, free: 8.172 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 0.05328/0.5751, allocations: 21.33 MB / 1.423 GB, free: 2.605 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.375e-06/0.5752, allocations: 4 kB / 1.423 GB, free: 2.602 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 2.419e-05/0.5752, allocations: 4 kB / 1.423 GB, free: 2.598 MB / 0.9167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001173/0.5764, allocations: 0.535 MB / 1.424 GB, free: 2.016 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 6.448e-05/0.5765, allocations: 8.562 kB / 1.424 GB, free: 2.008 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001475/0.5766, allocations: 58.53 kB / 1.424 GB, free: 1.941 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009566/0.5776, allocations: 107.5 kB / 1.424 GB, free: 1.836 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004939/0.5781, allocations: 263 kB / 1.424 GB, free: 1.539 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.406e-05/0.5782, allocations: 16.44 kB / 1.424 GB, free: 1.523 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.313e-05/0.5782, allocations: 23.98 kB / 1.424 GB, free: 1.5 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000645/0.5789, allocations: 361 kB / 1.425 GB, free: 1.117 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.285e-05/0.5789, allocations: 8 kB / 1.425 GB, free: 1.109 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.22e-05/0.579, allocations: 4 kB / 1.425 GB, free: 1.105 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.461e-05/0.579, allocations: 24.42 kB / 1.425 GB, free: 1.082 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005157/0.5795, allocations: 309.5 kB / 1.425 GB, free: 0.7812 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5568/1.136, allocations: 1.518 MB / 1.426 GB, free: 182.9 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005034/1.137, allocations: 227.8 kB / 1.427 GB, free: 182.9 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001612/1.137, allocations: 85.91 kB / 1.427 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.547e-05/1.137, allocations: 39.89 kB / 1.427 GB, free: 182.7 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=18): time 4.268e-06/1.137, allocations: 0.5625 kB / 1.427 GB, free: 182.7 MB / 0.9167 GB Notification: Performance of matching and sorting (n=19): time 0.001282/1.138, allocations: 0.7902 MB / 1.428 GB, free: 182.5 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.999e-05/1.138, allocations: 55.83 kB / 1.428 GB, free: 182.4 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001564/1.139, allocations: 173.8 kB / 1.428 GB, free: 182.3 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.006e-05/1.139, allocations: 35.7 kB / 1.428 GB, free: 182.3 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 6.908e-05/1.139, allocations: 154.1 kB / 1.428 GB, free: 182.2 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 4.274e-05/1.139, allocations: 71.28 kB / 1.428 GB, free: 182.1 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.404e-05/1.139, allocations: 10.12 kB / 1.428 GB, free: 182.1 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 6.248e-05/1.139, allocations: 324.8 kB / 1.428 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001602/1.139, allocations: 114 kB / 1.428 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001738/1.139, allocations: 172.9 kB / 1.429 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001799/1.139, allocations: 132 kB / 1.429 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/1.139, allocations: 0 / 1.429 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006459/1.14, allocations: 412.8 kB / 1.429 GB, free: 181.7 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/1.14, allocations: 7.406 kB / 1.429 GB, free: 181.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/1.14, allocations: 3 kB / 1.429 GB, free: 181.7 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003741/1.14, allocations: 101.6 kB / 1.429 GB, free: 181.7 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002433/1.141, allocations: 53.61 kB / 1.429 GB, free: 181.7 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001493/1.142, allocations: 1.768 MB / 1.431 GB, free: 180.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002235/1.142, allocations: 17.48 kB / 1.431 GB, free: 180.4 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.382e-05/1.143, allocations: 12.19 kB / 1.431 GB, free: 180.4 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (26): * Single equations (assignments): 25 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001496/1.143, allocations: 157.8 kB / 1.431 GB, free: 180.3 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.397e-05/1.143, allocations: 15.34 kB / 1.431 GB, free: 180.3 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004714/1.143, allocations: 302.1 kB / 1.431 GB, free: 180.3 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/1.143, allocations: 4.141 kB / 1.431 GB, free: 180.3 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-06/1.143, allocations: 3 kB / 1.431 GB, free: 180.3 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/1.143, allocations: 1.594 kB / 1.431 GB, free: 180.3 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000964/1.144, allocations: 0.6992 MB / 1.432 GB, free: 179.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/1.144, allocations: 2.297 kB / 1.432 GB, free: 179.9 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003194/1.145, allocations: 55.95 kB / 1.432 GB, free: 179.9 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.711e-06/1.145, allocations: 4.281 kB / 1.432 GB, free: 179.9 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.225e-05/1.145, allocations: 6.344 kB / 1.432 GB, free: 179.9 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/1.145, allocations: 2.078 kB / 1.432 GB, free: 179.9 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/1.145, allocations: 6.719 kB / 1.432 GB, free: 179.9 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006699/1.145, allocations: 0.5399 MB / 1.433 GB, free: 179.7 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001264/1.145, allocations: 118.6 kB / 1.433 GB, free: 179.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.204e-05/1.145, allocations: 3.25 kB / 1.433 GB, free: 179.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001831/1.146, allocations: 13.77 kB / 1.433 GB, free: 179.6 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.084e-05/1.146, allocations: 18.7 kB / 1.433 GB, free: 179.6 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.726e-05/1.146, allocations: 8.438 kB / 1.433 GB, free: 179.6 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.000135/1.146, allocations: 145.8 kB / 1.433 GB, free: 179.6 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.21e-07/1.146, allocations: 0 / 1.433 GB, free: 179.6 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.00044/1.146, allocations: 80.03 kB / 1.433 GB, free: 179.6 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (loa.q[1],loa.q[2]) * 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 (20): * Single equations (assignments): 20 * 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.0008941/1.147, allocations: 1.228 MB / 1.434 GB, free: 178.7 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.000765/1.148, allocations: 424.7 kB / 1.435 GB, free: 178.6 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/1.148, allocations: 2.719 kB / 1.435 GB, free: 178.6 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0001799/1.148, allocations: 118.8 kB / 1.435 GB, free: 178.6 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003/1.149, allocations: 29.66 kB / 1.435 GB, free: 178.6 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002942/1.151, allocations: 2.586 MB / 1.437 GB, free: 177 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002786/1.152, allocations: 0.7779 MB / 1.438 GB, free: 176.3 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0002137/1.152, allocations: 62.48 kB / 1.438 GB, free: 176.3 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001226/1.152, allocations: 70.95 kB / 1.438 GB, free: 176.3 MB / 0.9167 GB Notification: Performance of SimCode: time 7.62e-07/1.152, allocations: 1.203 kB / 1.438 GB, free: 176.3 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01903/1.171, allocations: 4.637 MB / 1.443 GB, free: 176 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001949/1.171, allocations: 223.4 kB / 1.443 GB, free: 175.8 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.875/3.047, allocations: 1.281 kB / 1.443 GB, free: 175.8 MB / 0.9167 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat does not exist to compare? outputFormat=mat