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.486/2.486, allocations: 390.5 MB / 398 MB, free: 10.96 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.001156/0.001156, allocations: 174.9 kB / 491.2 MB, free: 1.602 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.609/1.609, allocations: 221.5 MB / 0.7868 GB, free: 13.25 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.000937/0.0009369, allocations: 93.64 kB / 0.9269 GB, free: 13.76 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.799e-05/1.813e-05, allocations: 4 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3084/0.3084, allocations: 143 MB / 1.212 GB, free: 39.4 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.045/1.353, allocations: 176.5 MB / 1.385 GB, free: 17.1 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004527/1.354, allocations: 97.28 kB / 1.385 GB, free: 17.08 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04756/1.401, allocations: 21.11 MB / 1.405 GB, free: 21.2 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.114e-06/1.401, allocations: 0 / 1.405 GB, free: 21.2 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.124e-05/1.401, allocations: 8 kB / 1.405 GB, free: 21.2 MB / 0.8386 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.00081/1.402, allocations: 0.5278 MB / 1.406 GB, free: 20.64 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/1.402, allocations: 8.031 kB / 1.406 GB, free: 20.64 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008164/1.403, allocations: 95.61 kB / 1.406 GB, free: 20.54 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003857/1.404, allocations: 258.5 kB / 1.406 GB, free: 20.27 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.787e-05/1.404, allocations: 8 kB / 1.406 GB, free: 20.26 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.855e-05/1.404, allocations: 12 kB / 1.406 GB, free: 20.25 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003516/1.404, allocations: 230.2 kB / 1.407 GB, free: 20.11 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004158/1.404, allocations: 325.5 kB / 1.407 GB, free: 19.84 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.851e-05/1.404, allocations: 7.938 kB / 1.407 GB, free: 19.83 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.924e-05/1.404, allocations: 0 / 1.407 GB, free: 19.83 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.762e-05/1.404, allocations: 31.39 kB / 1.407 GB, free: 19.8 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001476/1.406, allocations: 1.464 MB / 1.408 GB, free: 18.36 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003392/1.406, allocations: 225.7 kB / 1.409 GB, free: 18.2 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001164/1.406, allocations: 107.9 kB / 1.409 GB, free: 18.12 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001351/1.407, allocations: 85.09 kB / 1.409 GB, free: 18.02 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.583e-05/1.407, allocations: 34.94 kB / 1.409 GB, free: 17.98 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=18): time 1.613e-06/1.407, allocations: 4 kB / 1.409 GB, free: 17.98 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19): time 0.001217/1.408, allocations: 0.7089 MB / 1.409 GB, free: 17.34 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.98e-05/1.408, allocations: 59.22 kB / 1.41 GB, free: 17.27 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001659/1.408, allocations: 163.4 kB / 1.41 GB, free: 17.12 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.049e-05/1.408, allocations: 25.7 kB / 1.41 GB, free: 17.09 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.01e-05/1.408, allocations: 164.7 kB / 1.41 GB, free: 16.95 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.144e-05/1.408, allocations: 57.98 kB / 1.41 GB, free: 16.89 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.382e-05/1.408, allocations: 0 / 1.41 GB, free: 16.89 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001288/1.408, allocations: 329.9 kB / 1.41 GB, free: 16.57 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001324/1.409, allocations: 99.78 kB / 1.41 GB, free: 16.51 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001566/1.409, allocations: 161.7 kB / 1.41 GB, free: 16.37 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002765/1.409, allocations: 152.4 kB / 1.411 GB, free: 16.27 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/1.409, allocations: 7.938 kB / 1.411 GB, free: 16.26 MB / 0.8386 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006802/1.41, allocations: 399.7 kB / 1.411 GB, free: 15.95 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/1.41, allocations: 7.984 kB / 1.411 GB, free: 15.94 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/1.41, allocations: 4 kB / 1.411 GB, free: 15.94 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003439/1.41, allocations: 90.53 kB / 1.411 GB, free: 15.86 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002359/1.41, allocations: 55.14 kB / 1.411 GB, free: 15.81 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001928/1.412, allocations: 1.66 MB / 1.413 GB, free: 14.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002041/1.413, allocations: 16.02 kB / 1.413 GB, free: 14.19 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.64e-05/1.413, allocations: 15.48 kB / 1.413 GB, free: 14.18 MB / 0.8386 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.0001277/1.413, allocations: 115.3 kB / 1.413 GB, free: 14.06 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004557/1.413, allocations: 263.3 kB / 1.413 GB, free: 13.86 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.127e-05/1.413, allocations: 15.81 kB / 1.413 GB, free: 13.84 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005517/1.414, allocations: 291.4 kB / 1.413 GB, free: 13.63 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.664e-06/1.414, allocations: 7.984 kB / 1.413 GB, free: 13.62 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-06/1.414, allocations: 3.938 kB / 1.413 GB, free: 13.62 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/1.414, allocations: 0 / 1.413 GB, free: 13.62 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009685/1.415, allocations: 0.6649 MB / 1.414 GB, free: 13.03 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/1.415, allocations: 0 / 1.414 GB, free: 13.03 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002913/1.415, allocations: 51.95 kB / 1.414 GB, free: 12.98 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.581e-06/1.415, allocations: 4 kB / 1.414 GB, free: 12.98 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.74e-05/1.415, allocations: 2.938 kB / 1.414 GB, free: 12.98 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/1.415, allocations: 4 kB / 1.414 GB, free: 12.97 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/1.415, allocations: 3.938 kB / 1.414 GB, free: 12.97 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000683/1.416, allocations: 0.5366 MB / 1.415 GB, free: 12.52 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001204/1.416, allocations: 115.4 kB / 1.415 GB, free: 12.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.163e-05/1.416, allocations: 0 / 1.415 GB, free: 12.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001667/1.416, allocations: 15.94 kB / 1.415 GB, free: 12.38 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.664e-05/1.416, allocations: 12.05 kB / 1.415 GB, free: 12.37 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.511e-05/1.416, allocations: 7.125 kB / 1.415 GB, free: 12.36 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001301/1.416, allocations: 138.1 kB / 1.415 GB, free: 12.25 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.416, allocations: 0 / 1.415 GB, free: 12.25 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004168/1.417, allocations: 64 kB / 1.415 GB, free: 12.18 MB / 0.8386 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.001095/1.418, allocations: 1.236 MB / 1.416 GB, free: 11.03 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006295/1.419, allocations: 389.9 kB / 1.417 GB, free: 10.72 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/1.419, allocations: 4.062 kB / 1.417 GB, free: 10.72 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000146/1.419, allocations: 115 kB / 1.417 GB, free: 10.64 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003212/1.419, allocations: 24.86 kB / 1.417 GB, free: 10.62 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001274/1.42, allocations: 0.5601 MB / 1.417 GB, free: 10.07 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003482/1.421, allocations: 0.7844 MB / 1.418 GB, free: 9.27 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001814/1.421, allocations: 62.02 kB / 1.418 GB, free: 9.203 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000111/1.421, allocations: 67.09 kB / 1.418 GB, free: 9.176 MB / 0.8386 GB Notification: Performance of SimCode: time 5.21e-07/1.421, allocations: 0 / 1.418 GB, free: 9.176 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02719/1.448, allocations: 4.104 MB / 1.422 GB, free: 5.094 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002192/1.449, allocations: 168.4 kB / 1.422 GB, free: 4.898 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.833/3.281, allocations: 0 / 1.422 GB, free: 4.898 MB / 0.8386 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