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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009304/0.0009301, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009399/0.0009402, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 223.2 MB / 239.9 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.564/2.564, allocations: 390.3 MB / 0.6653 GB, free: 2.957 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003281/0.0003282, allocations: 11.98 kB / 0.8146 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8297/0.83, allocations: 142.3 MB / 0.9536 GB, free: 8.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor): time 0.002597/0.8326, allocations: 2.217 MB / 0.9558 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001939/0.8346, allocations: 1.34 MB / 0.9571 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001415/0.8348, allocations: 5.062 kB / 0.9571 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001546/0.8349, allocations: 30.7 kB / 0.9571 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004706/0.8354, allocations: 119.8 kB / 0.9572 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003772/0.8358, allocations: 123.2 kB / 0.9573 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002762/0.8361, allocations: 121.8 kB / 0.9575 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005939/0.8367, allocations: 302.8 kB / 0.9577 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001743/0.8369, allocations: 74.39 kB / 0.9578 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002137/0.8371, allocations: 72.31 kB / 0.9579 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.291e-05/0.8371, allocations: 11.41 kB / 0.9579 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002541/0.8374, allocations: 121.5 kB / 0.958 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.597e-05/0.8375, allocations: 56.45 kB / 0.9581 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.187e-05/0.8375, allocations: 52.77 kB / 0.9581 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003609/0.8379, allocations: 239.3 kB / 0.9583 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.8379, allocations: 0 / 0.9583 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.354e-06/0.8379, allocations: 0 / 0.9583 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.556e-06/0.8379, allocations: 0 / 0.9583 GB, free: 4.516 MB / 0.7169 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.0007846/0.8387, allocations: 472.7 kB / 0.9588 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.8388, allocations: 11.81 kB / 0.9588 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.106e-05/0.8389, allocations: 53.78 kB / 0.9589 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007632/0.8397, allocations: 83.38 kB / 0.9589 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003211/0.84, allocations: 227.4 kB / 0.9591 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.306e-05/0.84, allocations: 15.27 kB / 0.9592 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.105e-05/0.8401, allocations: 13.62 kB / 0.9592 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004678/0.8405, allocations: 318.1 kB / 0.9595 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/0.8406, allocations: 1.375 kB / 0.9595 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.723e-05/0.8406, allocations: 10.7 kB / 0.9595 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.363e-05/0.8407, allocations: 22.86 kB / 0.9595 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004219/0.8411, allocations: 251.7 kB / 0.9598 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001408/0.8425, allocations: 1.641 MB / 0.9614 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005782/0.8431, allocations: 423.1 kB / 0.9618 GB, free: 1.391 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000113/0.8432, allocations: 86.47 kB / 0.9618 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.752e-05/0.8432, allocations: 32.12 kB / 0.9619 GB, free: 1.254 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=13): time 1.663e-06/0.8433, allocations: 0.8125 kB / 0.9619 GB, free: 1.254 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0006244/0.8439, allocations: 303.6 kB / 0.9622 GB, free: 1.078 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.171e-05/0.8439, allocations: 83.52 kB / 0.9622 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001427/0.8441, allocations: 172.7 kB / 0.9624 GB, free: 0.8438 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.661e-05/0.8441, allocations: 34.69 kB / 0.9624 GB, free: 0.8047 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.442e-05/0.8442, allocations: 150.1 kB / 0.9626 GB, free: 0.6641 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.055e-05/0.8442, allocations: 45.39 kB / 0.9626 GB, free: 0.625 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.199e-05/0.8442, allocations: 5 kB / 0.9626 GB, free: 0.6211 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.376e-05/0.8443, allocations: 330.6 kB / 0.9629 GB, free: 300 kB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001097/0.8444, allocations: 78.2 kB / 0.963 GB, free: 260 kB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001353/0.8445, allocations: 154.1 kB / 0.9632 GB, free: 120 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000156/0.8447, allocations: 98.22 kB / 0.9633 GB, free: 72 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.8447, allocations: 3.938 kB / 0.9633 GB, free: 68 kB / 0.7169 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005012/0.8452, allocations: 269.1 kB / 0.9635 GB, free: 15.92 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007133/0.8459, allocations: 0.9647 MB / 0.9645 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.619e-05/0.846, allocations: 6.719 kB / 0.9645 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.145e-05/0.846, allocations: 3.875 kB / 0.9645 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000276/0.8463, allocations: 50.83 kB / 0.9645 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.881e-05/0.8463, allocations: 11.95 kB / 0.9645 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001731/0.8465, allocations: 20.42 kB / 0.9646 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.057e-05/0.8465, allocations: 15.89 kB / 0.9646 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.8465, allocations: 3.875 kB / 0.9646 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004206/0.847, allocations: 209.2 kB / 0.9648 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.847, allocations: 2.594 kB / 0.9648 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.115e-05/0.847, allocations: 7.859 kB / 0.9648 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002071/0.8472, allocations: 49.84 kB / 0.9648 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.8472, allocations: 3.938 kB / 0.9648 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001362/0.8474, allocations: 18.48 kB / 0.9649 GB, free: 14.72 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.088e-05/0.8474, allocations: 12.31 kB / 0.9649 GB, free: 14.72 MB / 0.7325 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 () * Number of clocked 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 0.000223/0.8476, allocations: 228.6 kB / 0.9651 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.92e-05/0.8477, allocations: 10.53 kB / 0.9651 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004191/0.8481, allocations: 205.2 kB / 0.9653 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.8482, allocations: 2.844 kB / 0.9653 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.8482, allocations: 0 / 0.9653 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.8482, allocations: 5 kB / 0.9653 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001365/0.8496, allocations: 0.9689 MB / 0.9662 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.8496, allocations: 3.5 kB / 0.9662 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001284/0.8497, allocations: 32.73 kB / 0.9663 GB, free: 13.51 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.61e-06/0.8497, allocations: 3.844 kB / 0.9663 GB, free: 13.51 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.441e-05/0.8497, allocations: 3.938 kB / 0.9663 GB, free: 13.51 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.023e-05/0.8498, allocations: 17.48 kB / 0.9663 GB, free: 13.5 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.8498, allocations: 6.812 kB / 0.9663 GB, free: 13.49 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004915/0.8503, allocations: 0.5663 MB / 0.9669 GB, free: 12.88 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001217/0.8504, allocations: 114.6 kB / 0.967 GB, free: 12.76 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.948e-05/0.8504, allocations: 12.61 kB / 0.967 GB, free: 12.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001892/0.8506, allocations: 11.8 kB / 0.967 GB, free: 12.75 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.535e-05/0.8507, allocations: 22.56 kB / 0.967 GB, free: 12.73 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.574e-05/0.8507, allocations: 7.625 kB / 0.967 GB, free: 12.73 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001325/0.8508, allocations: 127.9 kB / 0.9671 GB, free: 12.64 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8509, allocations: 4 kB / 0.9671 GB, free: 12.63 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005866/0.8515, allocations: 78.58 kB / 0.9672 GB, free: 12.62 MB / 0.7325 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 () * Number of clocked 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.00135/0.8528, allocations: 2.018 MB / 0.9692 GB, free: 10.59 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005449/0.8534, allocations: 298.9 kB / 0.9695 GB, free: 10.46 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.8534, allocations: 4.062 kB / 0.9695 GB, free: 10.46 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001347/0.8535, allocations: 83.97 kB / 0.9696 GB, free: 10.42 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003983/0.8539, allocations: 23.55 kB / 0.9696 GB, free: 10.41 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002563/0.8565, allocations: 2.738 MB / 0.9723 GB, free: 7.926 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000345/0.8569, allocations: 0.7534 MB / 0.973 GB, free: 7.188 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002445/0.8571, allocations: 81.41 kB / 0.9731 GB, free: 7.152 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.354e-05/0.8572, allocations: 49.3 kB / 0.9731 GB, free: 7.117 MB / 0.7325 GB Notification: Performance of SimCode: time 2.8e-07/0.8572, allocations: 0 / 0.9731 GB, free: 7.117 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01604/0.8733, allocations: 3.329 MB / 0.9764 GB, free: 5.613 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002075/0.8735, allocations: 214.1 kB / 0.9766 GB, free: 5.371 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.759/2.633, allocations: 1.875 kB / 0.9766 GB, free: 5.371 MB / 0.7325 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