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.205/2.205, allocations: 390.3 MB / 402.8 MB, free: 6.684 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.001149/0.001149, allocations: 182.9 kB / 496.1 MB, free: 12.84 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.574/1.574, allocations: 221.3 MB / 0.7915 GB, free: 5.402 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.001012/0.001012, allocations: 95.27 kB / 0.9318 GB, free: 5.711 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.848e-05/3.883e-05, allocations: 0 / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3167/0.3168, allocations: 143 MB / 1.219 GB, free: 13.41 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.116/1.433, allocations: 177.2 MB / 1.392 GB, free: 10.65 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003433/1.433, allocations: 96.69 kB / 1.392 GB, free: 10.6 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 0.05337/1.486, allocations: 21.18 MB / 1.413 GB, free: 8.652 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.024e-06/1.487, allocations: 4 kB / 1.413 GB, free: 8.648 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 2.091e-05/1.487, allocations: 4 kB / 1.413 GB, free: 8.645 MB / 0.8698 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.001/1.488, allocations: 0.5267 MB / 1.413 GB, free: 8.094 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.908e-05/1.488, allocations: 8.031 kB / 1.413 GB, free: 8.086 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001038/1.488, allocations: 56.41 kB / 1.413 GB, free: 8.031 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008833/1.489, allocations: 103.2 kB / 1.413 GB, free: 7.934 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004535/1.489, allocations: 249.2 kB / 1.414 GB, free: 7.668 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.498e-05/1.489, allocations: 19.19 kB / 1.414 GB, free: 7.656 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.883e-05/1.489, allocations: 18.62 kB / 1.414 GB, free: 7.645 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000642/1.49, allocations: 364.4 kB / 1.414 GB, free: 7.355 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/1.49, allocations: 3.938 kB / 1.414 GB, free: 7.352 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.554e-05/1.49, allocations: 7.125 kB / 1.414 GB, free: 7.348 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-05/1.49, allocations: 23.5 kB / 1.414 GB, free: 7.328 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004758/1.49, allocations: 304.4 kB / 1.414 GB, free: 7.125 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002206/1.493, allocations: 1.536 MB / 1.416 GB, free: 5.602 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004492/1.493, allocations: 220.7 kB / 1.416 GB, free: 5.441 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00016/1.493, allocations: 114.1 kB / 1.416 GB, free: 5.367 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001746/1.494, allocations: 96.94 kB / 1.416 GB, free: 5.254 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.703e-05/1.494, allocations: 34.56 kB / 1.416 GB, free: 5.211 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=18): time 3.006e-06/1.494, allocations: 0 / 1.416 GB, free: 5.211 MB / 0.8698 GB Notification: Performance of matching and sorting (n=19): time 0.00122/1.495, allocations: 0.6897 MB / 1.417 GB, free: 4.605 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.628e-05/1.495, allocations: 58.09 kB / 1.417 GB, free: 4.539 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002029/1.495, allocations: 173.4 kB / 1.417 GB, free: 4.383 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.8e-05/1.495, allocations: 28.83 kB / 1.417 GB, free: 4.352 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/1.495, allocations: 164.6 kB / 1.417 GB, free: 4.203 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 6.24e-05/1.495, allocations: 70.3 kB / 1.417 GB, free: 4.141 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.391e-05/1.495, allocations: 3.062 kB / 1.417 GB, free: 4.141 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001482/1.495, allocations: 331.2 kB / 1.418 GB, free: 3.816 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001703/1.496, allocations: 114.5 kB / 1.418 GB, free: 3.742 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002181/1.496, allocations: 166.1 kB / 1.418 GB, free: 3.602 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002059/1.496, allocations: 133.8 kB / 1.418 GB, free: 3.512 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/1.496, allocations: 0 / 1.418 GB, free: 3.512 MB / 0.8698 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007329/1.497, allocations: 405.9 kB / 1.418 GB, free: 3.203 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.274e-05/1.497, allocations: 8 kB / 1.418 GB, free: 3.195 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.158e-06/1.497, allocations: 3.953 kB / 1.418 GB, free: 3.191 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004201/1.497, allocations: 102.1 kB / 1.419 GB, free: 3.105 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000258/1.498, allocations: 47.91 kB / 1.419 GB, free: 3.059 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001859/1.499, allocations: 1.724 MB / 1.42 GB, free: 1.383 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002088/1.5, allocations: 15.95 kB / 1.42 GB, free: 1.371 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.474e-05/1.5, allocations: 8 kB / 1.42 GB, free: 1.363 MB / 0.8698 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 () * 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.0001286/1.5, allocations: 117.5 kB / 1.42 GB, free: 1.25 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.334e-05/1.5, allocations: 15.81 kB / 1.42 GB, free: 1.234 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005723/1.5, allocations: 309 kB / 1.421 GB, free: 1.008 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/1.501, allocations: 0 / 1.421 GB, free: 1.008 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-06/1.501, allocations: 3.953 kB / 1.421 GB, free: 1.004 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/1.501, allocations: 3.984 kB / 1.421 GB, free: 1 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009657/1.501, allocations: 0.6888 MB / 1.421 GB, free: 388 kB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/1.502, allocations: 12.05 kB / 1.421 GB, free: 376 kB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002919/1.502, allocations: 51.91 kB / 1.421 GB, free: 324 kB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.106e-06/1.502, allocations: 11.94 kB / 1.421 GB, free: 312 kB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.902e-05/1.502, allocations: 2.938 kB / 1.421 GB, free: 312 kB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/1.502, allocations: 4 kB / 1.421 GB, free: 308 kB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/1.502, allocations: 4.062 kB / 1.421 GB, free: 304 kB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006626/1.503, allocations: 0.5355 MB / 1.422 GB, free: 15.85 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001095/1.503, allocations: 116 kB / 1.422 GB, free: 15.73 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.935e-05/1.503, allocations: 3 kB / 1.422 GB, free: 15.73 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001707/1.503, allocations: 15.36 kB / 1.422 GB, free: 15.71 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.557e-05/1.503, allocations: 11.98 kB / 1.422 GB, free: 15.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.501e-05/1.503, allocations: 7.188 kB / 1.422 GB, free: 15.7 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001378/1.503, allocations: 138.9 kB / 1.422 GB, free: 15.58 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.4e-07/1.503, allocations: 4.062 kB / 1.422 GB, free: 15.58 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004115/1.504, allocations: 74.5 kB / 1.422 GB, free: 15.51 MB / 0.8855 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 () * 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.001077/1.505, allocations: 1.236 MB / 1.424 GB, free: 14.37 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0007383/1.505, allocations: 414.5 kB / 1.424 GB, free: 14.04 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/1.505, allocations: 0 / 1.424 GB, free: 14.04 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001607/1.506, allocations: 123.8 kB / 1.424 GB, free: 13.95 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003177/1.506, allocations: 44.55 kB / 1.424 GB, free: 13.92 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001301/1.507, allocations: 0.5602 MB / 1.425 GB, free: 13.37 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003897/1.508, allocations: 0.7848 MB / 1.425 GB, free: 12.57 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0001789/1.508, allocations: 54.03 kB / 1.426 GB, free: 12.52 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/1.508, allocations: 66.05 kB / 1.426 GB, free: 12.5 MB / 0.8855 GB Notification: Performance of SimCode: time 2.51e-07/1.508, allocations: 0 / 1.426 GB, free: 12.5 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02084/1.529, allocations: 4.662 MB / 1.43 GB, free: 8.047 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003595/1.529, allocations: 203.2 kB / 1.43 GB, free: 7.812 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.932/3.461, allocations: 0 / 1.43 GB, free: 7.812 MB / 0.8855 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