Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.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.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.305/2.305, allocations: 390.3 MB / 405.3 MB, free: 13.49 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.001378/0.001378, allocations: 185 kB / 498.1 MB, free: 5.746 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.59/1.59, allocations: 223.1 MB / 0.7948 GB, free: 17.87 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.0009026/0.0009026, allocations: 101.1 kB / 0.9346 GB, free: 6.203 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003603/0.0003601, allocations: 7 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2993/0.2996, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2191/0.5188, allocations: 176.4 MB / 1.395 GB, free: 1.504 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000376/0.5192, allocations: 107.9 kB / 1.395 GB, free: 1.398 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.05313/0.5723, allocations: 21.33 MB / 1.416 GB, free: 11.83 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.885e-06/0.5724, allocations: 0 / 1.416 GB, free: 11.83 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 2.398e-05/0.5724, allocations: 11.94 kB / 1.416 GB, free: 11.82 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.001195/0.5736, allocations: 0.5301 MB / 1.417 GB, free: 11.24 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 6.012e-05/0.5737, allocations: 16.02 kB / 1.417 GB, free: 11.22 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001582/0.5739, allocations: 54.55 kB / 1.417 GB, free: 11.16 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009862/0.5749, allocations: 99.56 kB / 1.417 GB, free: 11.06 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005817/0.5755, allocations: 252.7 kB / 1.417 GB, free: 10.78 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.079e-05/0.5755, allocations: 20.42 kB / 1.417 GB, free: 10.76 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.555e-05/0.5756, allocations: 27.88 kB / 1.417 GB, free: 10.73 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007589/0.5764, allocations: 365 kB / 1.417 GB, free: 10.35 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.5764, allocations: 3.938 kB / 1.417 GB, free: 10.35 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.335e-05/0.5765, allocations: 8 kB / 1.417 GB, free: 10.34 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.107e-05/0.5765, allocations: 24.42 kB / 1.418 GB, free: 10.31 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005624/0.5771, allocations: 309.5 kB / 1.418 GB, free: 10.01 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002319/0.5794, allocations: 1.525 MB / 1.419 GB, free: 8.336 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004791/0.5799, allocations: 231.8 kB / 1.42 GB, free: 8.102 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00018/0.5801, allocations: 89.09 kB / 1.42 GB, free: 7.996 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.567e-05/0.5802, allocations: 38.56 kB / 1.42 GB, free: 7.949 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=18): time 2.866e-06/0.5802, allocations: 0 / 1.42 GB, free: 7.949 MB / 0.9167 GB Notification: Performance of matching and sorting (n=19): time 0.00146/0.5817, allocations: 0.7897 MB / 1.42 GB, free: 7.105 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.973e-05/0.5817, allocations: 55.41 kB / 1.42 GB, free: 7.039 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001894/0.5819, allocations: 177.8 kB / 1.421 GB, free: 6.855 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.731e-05/0.582, allocations: 29.7 kB / 1.421 GB, free: 6.82 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/0.5821, allocations: 159.8 kB / 1.421 GB, free: 6.66 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 6.198e-05/0.5821, allocations: 67 kB / 1.421 GB, free: 6.594 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.349e-05/0.5822, allocations: 8 kB / 1.421 GB, free: 6.586 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001174/0.5823, allocations: 330.8 kB / 1.421 GB, free: 6.254 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001711/0.5825, allocations: 111.9 kB / 1.421 GB, free: 6.145 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000188/0.5827, allocations: 161.9 kB / 1.421 GB, free: 5.965 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002215/0.5829, allocations: 143.8 kB / 1.422 GB, free: 5.824 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.5829, allocations: 0 / 1.422 GB, free: 5.824 MB / 0.9167 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007475/0.5837, allocations: 407.2 kB / 1.422 GB, free: 5.418 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 3.259e-05/0.5837, allocations: 12.19 kB / 1.422 GB, free: 5.406 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.5837, allocations: 0 / 1.422 GB, free: 5.406 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004017/0.5841, allocations: 96.73 kB / 1.422 GB, free: 5.309 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002623/0.5844, allocations: 51.89 kB / 1.422 GB, free: 5.258 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001863/0.5863, allocations: 1.753 MB / 1.424 GB, free: 3.375 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002496/0.5865, allocations: 24.03 kB / 1.424 GB, free: 3.352 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.579e-05/0.5866, allocations: 12 kB / 1.424 GB, free: 3.34 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.0001787/0.5868, allocations: 153.8 kB / 1.424 GB, free: 3.18 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.832e-05/0.5868, allocations: 15.81 kB / 1.424 GB, free: 3.164 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004885/0.5873, allocations: 299.8 kB / 1.424 GB, free: 2.863 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.5873, allocations: 4 kB / 1.424 GB, free: 2.859 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.5873, allocations: 0 / 1.424 GB, free: 2.859 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.5873, allocations: 3.953 kB / 1.424 GB, free: 2.855 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009404/0.5883, allocations: 0.7084 MB / 1.425 GB, free: 2.086 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.5883, allocations: 4 kB / 1.425 GB, free: 2.082 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003131/0.5886, allocations: 51.95 kB / 1.425 GB, free: 2.031 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.974e-06/0.5886, allocations: 4 kB / 1.425 GB, free: 2.027 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.182e-05/0.5887, allocations: 12.02 kB / 1.425 GB, free: 2.016 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.5887, allocations: 4 kB / 1.425 GB, free: 2.012 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.5887, allocations: 0 / 1.425 GB, free: 2.012 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005982/0.5893, allocations: 0.5371 MB / 1.426 GB, free: 1.441 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001254/0.5894, allocations: 117 kB / 1.426 GB, free: 1.309 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.761e-05/0.5895, allocations: 12.23 kB / 1.426 GB, free: 1.297 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000182/0.5897, allocations: 11.98 kB / 1.426 GB, free: 1.285 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.373e-05/0.5897, allocations: 15.98 kB / 1.426 GB, free: 1.27 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.629e-05/0.5897, allocations: 7.984 kB / 1.426 GB, free: 1.262 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001176/0.5899, allocations: 147.1 kB / 1.426 GB, free: 1.117 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5899, allocations: 0 / 1.426 GB, free: 1.117 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0003892/0.5903, allocations: 76 kB / 1.426 GB, free: 1.043 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.6212/1.211, allocations: 1.232 MB / 1.427 GB, free: 190.3 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0008831/1.212, allocations: 416.2 kB / 1.428 GB, free: 190.1 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 8.816e-06/1.212, allocations: 2.406 kB / 1.428 GB, free: 190.1 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.000204/1.213, allocations: 128.5 kB / 1.428 GB, free: 190.1 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004396/1.213, allocations: 27.83 kB / 1.428 GB, free: 190.1 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002726/1.216, allocations: 2.589 MB / 1.43 GB, free: 188.6 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002668/1.216, allocations: 0.7838 MB / 1.431 GB, free: 187.9 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0002009/1.216, allocations: 58.38 kB / 1.431 GB, free: 187.9 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001227/1.216, allocations: 68.56 kB / 1.431 GB, free: 187.9 MB / 0.9167 GB Notification: Performance of SimCode: time 6.31e-07/1.216, allocations: 0 / 1.431 GB, free: 187.9 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02123/1.238, allocations: 4.632 MB / 1.436 GB, free: 187.7 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001679/1.238, allocations: 219.4 kB / 1.436 GB, free: 187.5 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.718/2.956, allocations: 0 / 1.436 GB, free: 187.5 MB / 0.9167 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat does not exist to compare? outputFormat=mat