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.515/2.515, allocations: 387.4 MB / 394.9 MB, free: 13.36 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.001094/0.001094, allocations: 184.8 kB / 487.4 MB, free: 5.035 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.519/1.519, allocations: 221.5 MB / 0.7824 GB, free: 0.9961 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009389/0.0009387, allocations: 95.91 kB / 0.9219 GB, free: 2.238 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.547e-05/1.551e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2651/0.2652, allocations: 142.4 MB / 1.206 GB, free: 43.88 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.942/1.207, allocations: 175.7 MB / 1.378 GB, free: 18.33 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002629/1.208, allocations: 98.78 kB / 1.378 GB, free: 18.33 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04438/1.252, allocations: 21.12 MB / 1.398 GB, free: 26.19 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.132e-06/1.252, allocations: 0 / 1.398 GB, free: 26.19 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.592e-05/1.252, allocations: 3.875 kB / 1.398 GB, free: 26.19 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.0007409/1.253, allocations: 0.5224 MB / 1.399 GB, free: 25.72 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/1.253, allocations: 11.56 kB / 1.399 GB, free: 25.72 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007689/1.254, allocations: 92.88 kB / 1.399 GB, free: 25.68 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003287/1.254, allocations: 258.3 kB / 1.399 GB, free: 25.44 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/1.254, allocations: 7.531 kB / 1.399 GB, free: 25.44 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.949e-05/1.254, allocations: 11.59 kB / 1.399 GB, free: 25.44 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003074/1.254, allocations: 227.6 kB / 1.399 GB, free: 25.41 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003909/1.255, allocations: 330.5 kB / 1.4 GB, free: 25.28 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/1.255, allocations: 0 / 1.4 GB, free: 25.28 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.816e-05/1.255, allocations: 0 / 1.4 GB, free: 25.28 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.367e-05/1.255, allocations: 19.8 kB / 1.4 GB, free: 25.27 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001417/1.256, allocations: 1.484 MB / 1.401 GB, free: 24.05 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003271/1.257, allocations: 216.4 kB / 1.401 GB, free: 24 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/1.257, allocations: 105 kB / 1.402 GB, free: 23.99 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001193/1.257, allocations: 88.78 kB / 1.402 GB, free: 23.89 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.964e-05/1.257, allocations: 34.12 kB / 1.402 GB, free: 23.85 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=18): time 1.262e-06/1.257, allocations: 0 / 1.402 GB, free: 23.85 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19): time 0.001111/1.258, allocations: 0.7183 MB / 1.402 GB, free: 23.46 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.944e-05/1.258, allocations: 55.22 kB / 1.402 GB, free: 23.4 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001338/1.258, allocations: 164.5 kB / 1.403 GB, free: 23.29 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/1.258, allocations: 25.7 kB / 1.403 GB, free: 23.26 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.023e-05/1.258, allocations: 159.6 kB / 1.403 GB, free: 23.13 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.501e-05/1.258, allocations: 68.34 kB / 1.403 GB, free: 23.08 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.453e-05/1.258, allocations: 0 / 1.403 GB, free: 23.08 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001159/1.258, allocations: 329.1 kB / 1.403 GB, free: 22.76 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001181/1.259, allocations: 106.4 kB / 1.403 GB, free: 22.75 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001366/1.259, allocations: 159.5 kB / 1.403 GB, free: 22.67 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002652/1.259, allocations: 153.6 kB / 1.404 GB, free: 22.64 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/1.259, allocations: 0 / 1.404 GB, free: 22.64 MB / 0.8386 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006526/1.26, allocations: 401.2 kB / 1.404 GB, free: 22.52 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/1.26, allocations: 9.656 kB / 1.404 GB, free: 22.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/1.26, allocations: 0 / 1.404 GB, free: 22.52 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003197/1.26, allocations: 92.14 kB / 1.404 GB, free: 22.48 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002227/1.26, allocations: 57 kB / 1.404 GB, free: 22.46 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001397/1.262, allocations: 1.659 MB / 1.406 GB, free: 21.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001991/1.262, allocations: 15.66 kB / 1.406 GB, free: 21.12 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.082e-05/1.262, allocations: 11.69 kB / 1.406 GB, free: 21.12 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 9.622e-05/1.262, allocations: 121.9 kB / 1.406 GB, free: 21 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003704/1.262, allocations: 262.3 kB / 1.406 GB, free: 20.92 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.72e-05/1.262, allocations: 15.34 kB / 1.406 GB, free: 20.91 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004684/1.263, allocations: 296 kB / 1.406 GB, free: 20.82 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/1.263, allocations: 3.688 kB / 1.406 GB, free: 20.82 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-06/1.263, allocations: 4 kB / 1.406 GB, free: 20.82 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/1.263, allocations: 0 / 1.406 GB, free: 20.82 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000788/1.264, allocations: 0.6628 MB / 1.407 GB, free: 20.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/1.264, allocations: 8 kB / 1.407 GB, free: 20.29 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002794/1.264, allocations: 55.89 kB / 1.407 GB, free: 20.23 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/1.264, allocations: 3.984 kB / 1.407 GB, free: 20.23 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.718e-05/1.264, allocations: 4 kB / 1.407 GB, free: 20.23 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/1.264, allocations: 64 / 1.407 GB, free: 20.23 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/1.264, allocations: 8 kB / 1.407 GB, free: 20.22 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005628/1.265, allocations: 0.533 MB / 1.408 GB, free: 19.77 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000109/1.265, allocations: 110.4 kB / 1.408 GB, free: 19.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.186e-05/1.265, allocations: 8.047 kB / 1.408 GB, free: 19.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001643/1.265, allocations: 11.98 kB / 1.408 GB, free: 19.64 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.658e-05/1.265, allocations: 19.88 kB / 1.408 GB, free: 19.62 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.453e-05/1.265, allocations: 7.312 kB / 1.408 GB, free: 19.61 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001001/1.265, allocations: 130 kB / 1.408 GB, free: 19.5 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.265, allocations: 0 / 1.408 GB, free: 19.5 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003982/1.266, allocations: 71.98 kB / 1.408 GB, free: 19.43 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.0009368/1.266, allocations: 1.22 MB / 1.409 GB, free: 18.29 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005633/1.267, allocations: 398.8 kB / 1.41 GB, free: 17.98 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/1.267, allocations: 3.938 kB / 1.41 GB, free: 17.98 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001176/1.267, allocations: 114.3 kB / 1.41 GB, free: 17.9 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002831/1.268, allocations: 27.47 kB / 1.41 GB, free: 17.88 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001092/1.269, allocations: 0.5508 MB / 1.41 GB, free: 17.34 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000394/1.269, allocations: 0.7852 MB / 1.411 GB, free: 16.53 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001665/1.269, allocations: 58.03 kB / 1.411 GB, free: 16.47 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/1.269, allocations: 59.11 kB / 1.411 GB, free: 16.45 MB / 0.8386 GB Notification: Performance of SimCode: time 2.51e-07/1.269, allocations: 4 kB / 1.411 GB, free: 16.45 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.024/1.293, allocations: 4.123 MB / 1.415 GB, free: 12.35 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001852/1.294, allocations: 153.1 kB / 1.415 GB, free: 12.16 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.648/2.942, allocations: 0 / 1.415 GB, free: 12.16 MB / 0.8386 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