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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008877/0.0008875, allocations: 99.08 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.000906/0.000906, 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.401/1.401, 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.556/2.556, allocations: 390.3 MB / 0.6653 GB, free: 2.973 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003667/0.0003667, allocations: 8 kB / 0.8146 GB, free: 14.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8319/0.8323, allocations: 142.3 MB / 0.9536 GB, free: 8.047 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.00336/0.8357, allocations: 2.61 MB / 0.9561 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002396/0.8382, allocations: 1.585 MB / 0.9577 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001238/0.8383, allocations: 3 kB / 0.9577 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001546/0.8385, allocations: 30.78 kB / 0.9577 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004043/0.8389, allocations: 147 kB / 0.9579 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004148/0.8393, allocations: 143.4 kB / 0.958 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002625/0.8396, allocations: 175.5 kB / 0.9582 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007984/0.8404, allocations: 0.4933 MB / 0.9587 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000163/0.8406, allocations: 92.53 kB / 0.9587 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002518/0.8408, allocations: 108.9 kB / 0.9588 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.077e-05/0.8409, allocations: 11.31 kB / 0.9589 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000282/0.8412, allocations: 129.8 kB / 0.959 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.68e-05/0.8413, allocations: 86.75 kB / 0.9591 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.255e-05/0.8413, allocations: 66.2 kB / 0.9591 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003714/0.8417, allocations: 318 kB / 0.9594 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.8417, allocations: 0 / 0.9594 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.274e-06/0.8417, allocations: 0 / 0.9594 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.023e-06/0.8417, allocations: 4 kB / 0.9594 GB, free: 3.609 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0008732/0.8426, allocations: 0.4946 MB / 0.9599 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/0.8427, allocations: 9.625 kB / 0.9599 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.819e-05/0.8428, allocations: 72.08 kB / 0.96 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007793/0.8435, allocations: 99.45 kB / 0.9601 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003026/0.8439, allocations: 243.8 kB / 0.9603 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.284e-05/0.8439, allocations: 24.17 kB / 0.9603 GB, free: 2.762 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.566e-05/0.844, allocations: 20.25 kB / 0.9604 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000553/0.8445, allocations: 371.6 kB / 0.9607 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.8446, allocations: 5.031 kB / 0.9607 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.112e-05/0.8446, allocations: 10.16 kB / 0.9607 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001025/0.8447, allocations: 28.19 kB / 0.9608 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004725/0.8452, allocations: 312.8 kB / 0.9611 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001635/0.8468, allocations: 1.527 MB / 0.9625 GB, free: 0.9141 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005038/0.8474, allocations: 235.9 kB / 0.9628 GB, free: 0.7812 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001251/0.8475, allocations: 84.17 kB / 0.9629 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.44e-05/0.8475, allocations: 35.59 kB / 0.9629 GB, free: 0.6445 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=18): time 1.513e-06/0.8475, allocations: 0 / 0.9629 GB, free: 0.6445 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19): time 0.001241/0.8488, allocations: 0.7873 MB / 0.9637 GB, free: 100 kB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.215e-05/0.8488, allocations: 58.08 kB / 0.9637 GB, free: 32 kB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002239/0.8491, allocations: 195.9 kB / 0.9639 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.516e-05/0.8491, allocations: 34.73 kB / 0.9639 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.8492, allocations: 160.1 kB / 0.9641 GB, free: 15.69 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.725e-05/0.8493, allocations: 66.91 kB / 0.9641 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.524e-05/0.8493, allocations: 5.781 kB / 0.9642 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001333/0.8494, allocations: 326.8 kB / 0.9645 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001808/0.8496, allocations: 112.7 kB / 0.9646 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001901/0.8498, allocations: 169.2 kB / 0.9647 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002318/0.85, allocations: 136.5 kB / 0.9649 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.8501, allocations: 1.25 kB / 0.9649 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007784/0.8508, allocations: 416.6 kB / 0.9653 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.8509, allocations: 4.625 kB / 0.9653 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.8509, allocations: 2.469 kB / 0.9653 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004549/0.8513, allocations: 102.5 kB / 0.9654 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002526/0.8516, allocations: 57.48 kB / 0.9654 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002198/0.8538, allocations: 1.764 MB / 0.9671 GB, free: 13.16 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002507/0.8541, allocations: 15.11 kB / 0.9672 GB, free: 13.15 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.635e-05/0.8541, allocations: 8.062 kB / 0.9672 GB, free: 13.15 MB / 0.7325 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 () * Number of clocked 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.0002413/0.8544, allocations: 168.9 kB / 0.9673 GB, free: 12.99 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.891e-05/0.8544, allocations: 24.66 kB / 0.9674 GB, free: 12.98 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005723/0.855, allocations: 298 kB / 0.9676 GB, free: 12.8 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.855, allocations: 2.812 kB / 0.9676 GB, free: 12.8 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-06/0.855, allocations: 0 / 0.9676 GB, free: 12.8 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.855, allocations: 1.031 kB / 0.9676 GB, free: 12.8 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001178/0.8562, allocations: 0.7045 MB / 0.9683 GB, free: 12.24 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.8562, allocations: 1.125 kB / 0.9683 GB, free: 12.24 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003347/0.8566, allocations: 61.58 kB / 0.9684 GB, free: 12.22 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/0.8566, allocations: 1.844 kB / 0.9684 GB, free: 12.22 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.993e-05/0.8566, allocations: 11.08 kB / 0.9684 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.8566, allocations: 0.9688 kB / 0.9684 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.8567, allocations: 1.125 kB / 0.9684 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008065/0.8575, allocations: 0.5331 MB / 0.9689 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001704/0.8576, allocations: 119.3 kB / 0.969 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.498e-05/0.8577, allocations: 6.781 kB / 0.969 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001836/0.8579, allocations: 13.64 kB / 0.9691 GB, free: 11.7 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.989e-05/0.8579, allocations: 17.83 kB / 0.9691 GB, free: 11.69 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.072e-05/0.858, allocations: 12.67 kB / 0.9691 GB, free: 11.68 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000207/0.8582, allocations: 142.4 kB / 0.9692 GB, free: 11.57 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8582, allocations: 0 / 0.9692 GB, free: 11.57 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004795/0.8587, allocations: 66.53 kB / 0.9693 GB, free: 11.57 MB / 0.7325 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 () * Number of clocked 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.001275/0.86, allocations: 1.21 MB / 0.9705 GB, free: 10.53 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0008691/0.8608, allocations: 426.6 kB / 0.9709 GB, free: 10.27 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.8609, allocations: 4.062 kB / 0.9709 GB, free: 10.26 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001942/0.8611, allocations: 120.8 kB / 0.971 GB, free: 10.21 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003446/0.8614, allocations: 26.8 kB / 0.971 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003536/0.865, allocations: 2.601 MB / 0.9736 GB, free: 8.086 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006239/0.8656, allocations: 0.78 MB / 0.9743 GB, free: 7.336 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002088/0.8658, allocations: 59.84 kB / 0.9744 GB, free: 7.312 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001408/0.866, allocations: 70.66 kB / 0.9744 GB, free: 7.254 MB / 0.7325 GB Notification: Performance of SimCode: time 9.32e-07/0.866, allocations: 0 / 0.9744 GB, free: 7.254 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02116/0.8871, allocations: 4.647 MB / 0.979 GB, free: 5.125 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002215/0.8874, allocations: 219.1 kB / 0.9792 GB, free: 4.887 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.777/2.664, allocations: 0 / 0.9792 GB, free: 4.887 MB / 0.7325 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