Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_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.353/2.353, allocations: 387.4 MB / 394.9 MB, free: 13.4 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.001718/0.001718, allocations: 180.8 kB / 487.4 MB, free: 5.059 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.624/1.624, allocations: 221.5 MB / 0.7824 GB, free: 0.9414 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.0008923/0.0008923, allocations: 99.83 kB / 0.9219 GB, free: 2.172 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.03e-05/2.011e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2883/0.2883, allocations: 142.4 MB / 1.206 GB, free: 43.86 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9511/1.239, allocations: 170.8 MB / 1.373 GB, free: 18.07 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002942/1.24, allocations: 97.3 kB / 1.373 GB, free: 18.07 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03411/1.274, allocations: 15.65 MB / 1.388 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.074e-06/1.274, allocations: 0 / 1.388 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.537e-05/1.274, allocations: 3.812 kB / 1.388 GB, free: 29.27 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0006475/1.275, allocations: 480.1 kB / 1.389 GB, free: 28.82 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/1.275, allocations: 11.53 kB / 1.389 GB, free: 28.82 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006529/1.275, allocations: 77.69 kB / 1.389 GB, free: 28.79 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002498/1.276, allocations: 230.4 kB / 1.389 GB, free: 28.56 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.629e-05/1.276, allocations: 7.75 kB / 1.389 GB, free: 28.56 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.868e-05/1.276, allocations: 7.656 kB / 1.389 GB, free: 28.56 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002771/1.276, allocations: 180.9 kB / 1.389 GB, free: 28.54 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003536/1.276, allocations: 294.5 kB / 1.389 GB, free: 28.38 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/1.276, allocations: 3.875 kB / 1.389 GB, free: 28.38 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.545e-05/1.276, allocations: 0 / 1.389 GB, free: 28.38 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.424e-05/1.276, allocations: 19.52 kB / 1.389 GB, free: 28.37 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001487/1.278, allocations: 1.582 MB / 1.391 GB, free: 26.97 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005356/1.279, allocations: 411.5 kB / 1.391 GB, free: 26.68 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.718e-05/1.279, allocations: 79.61 kB / 1.392 GB, free: 26.65 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001366/1.279, allocations: 88.61 kB / 1.392 GB, free: 26.55 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.17e-05/1.279, allocations: 41.3 kB / 1.392 GB, free: 26.51 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=13): time 1.283e-06/1.279, allocations: 0 / 1.392 GB, free: 26.51 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0005741/1.279, allocations: 242.3 kB / 1.392 GB, free: 26.4 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.624e-05/1.279, allocations: 84.92 kB / 1.392 GB, free: 26.3 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001239/1.28, allocations: 146.7 kB / 1.392 GB, free: 26.2 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.494e-05/1.28, allocations: 25.92 kB / 1.392 GB, free: 26.17 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.607e-05/1.28, allocations: 152.6 kB / 1.392 GB, free: 26.03 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.144e-05/1.28, allocations: 50.06 kB / 1.392 GB, free: 25.99 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.143e-05/1.28, allocations: 0 / 1.392 GB, free: 25.99 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001285/1.28, allocations: 324.8 kB / 1.393 GB, free: 25.68 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.395e-05/1.28, allocations: 68.7 kB / 1.393 GB, free: 25.67 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001127/1.28, allocations: 147 kB / 1.393 GB, free: 25.57 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002066/1.28, allocations: 110.8 kB / 1.393 GB, free: 25.54 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/1.28, allocations: 0 / 1.393 GB, free: 25.54 MB / 0.8386 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003661/1.281, allocations: 262.5 kB / 1.393 GB, free: 25.46 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004467/1.281, allocations: 0.962 MB / 1.394 GB, free: 24.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/1.281, allocations: 3.875 kB / 1.394 GB, free: 24.45 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.062e-05/1.281, allocations: 7.984 kB / 1.394 GB, free: 24.44 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002229/1.281, allocations: 54.64 kB / 1.394 GB, free: 24.43 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/1.281, allocations: 11.72 kB / 1.394 GB, free: 24.42 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000133/1.282, allocations: 23.52 kB / 1.394 GB, free: 24.4 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.76e-05/1.282, allocations: 11.56 kB / 1.394 GB, free: 24.4 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.312e-06/1.282, allocations: 3.406 kB / 1.394 GB, free: 24.4 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002997/1.282, allocations: 200.9 kB / 1.394 GB, free: 24.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.494e-06/1.282, allocations: 0 / 1.394 GB, free: 24.36 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.699e-06/1.282, allocations: 3.844 kB / 1.394 GB, free: 24.36 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001602/1.282, allocations: 50.34 kB / 1.394 GB, free: 24.34 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.347e-06/1.282, allocations: 3.875 kB / 1.394 GB, free: 24.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.653e-05/1.282, allocations: 12.11 kB / 1.394 GB, free: 24.34 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.342e-05/1.282, allocations: 15.66 kB / 1.394 GB, free: 24.34 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.667e-05/1.282, allocations: 112.8 kB / 1.395 GB, free: 24.22 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003134/1.283, allocations: 201.2 kB / 1.395 GB, free: 24.14 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.452e-05/1.283, allocations: 10.53 kB / 1.395 GB, free: 24.13 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003433/1.283, allocations: 194.4 kB / 1.395 GB, free: 24.05 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.339e-06/1.283, allocations: 3.812 kB / 1.395 GB, free: 24.05 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/1.283, allocations: 4 kB / 1.395 GB, free: 24.05 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/1.283, allocations: 3.984 kB / 1.395 GB, free: 24.04 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009927/1.284, allocations: 0.9044 MB / 1.396 GB, free: 23.37 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.03e-06/1.284, allocations: 7.734 kB / 1.396 GB, free: 23.37 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001224/1.284, allocations: 38.81 kB / 1.396 GB, free: 23.36 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/1.284, allocations: 3.844 kB / 1.396 GB, free: 23.36 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/1.284, allocations: 4.125 kB / 1.396 GB, free: 23.36 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/1.284, allocations: 11.78 kB / 1.396 GB, free: 23.35 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/1.284, allocations: 7.797 kB / 1.396 GB, free: 23.34 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003978/1.285, allocations: 0.5841 MB / 1.397 GB, free: 22.78 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.247e-05/1.285, allocations: 114.1 kB / 1.397 GB, free: 22.67 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.087e-05/1.285, allocations: 3.844 kB / 1.397 GB, free: 22.67 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001796/1.285, allocations: 11.67 kB / 1.397 GB, free: 22.66 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.033e-05/1.285, allocations: 26.5 kB / 1.397 GB, free: 22.65 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.014e-05/1.285, allocations: 3.875 kB / 1.397 GB, free: 22.65 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 8.49e-05/1.285, allocations: 134.2 kB / 1.397 GB, free: 22.56 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.285, allocations: 0 / 1.397 GB, free: 22.56 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005082/1.286, allocations: 73.22 kB / 1.397 GB, free: 22.55 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * 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.00115/1.287, allocations: 2.033 MB / 1.399 GB, free: 20.58 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003384/1.287, allocations: 270.3 kB / 1.399 GB, free: 20.54 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/1.287, allocations: 320 / 1.399 GB, free: 20.54 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.082e-05/1.287, allocations: 78.92 kB / 1.399 GB, free: 20.51 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003314/1.288, allocations: 27.61 kB / 1.399 GB, free: 20.5 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008089/1.288, allocations: 423.1 kB / 1.4 GB, free: 20.19 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003663/1.289, allocations: 0.7525 MB / 1.4 GB, free: 19.46 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002012/1.289, allocations: 83.95 kB / 1.4 GB, free: 19.43 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.517e-05/1.289, allocations: 48.3 kB / 1.4 GB, free: 19.41 MB / 0.8386 GB Notification: Performance of SimCode: time 3.6e-07/1.289, allocations: 3.938 kB / 1.4 GB, free: 19.41 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02694/1.316, allocations: 3.049 MB / 1.403 GB, free: 17.98 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002446/1.316, allocations: 170.5 kB / 1.404 GB, free: 17.79 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.67/2.987, allocations: 0 / 1.404 GB, free: 17.79 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor_res.mat does not exist to compare? outputFormat=mat