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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001561/0.001561, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00183/0.00183, allocations: 194.6 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.278/2.278, allocations: 390.2 MB / 0.6647 GB, free: 428 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 67.91 kB / 0.8127 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5827/0.584, allocations: 140.4 MB / 0.9497 GB, free: 9.227 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004023/0.5881, allocations: 3.076 MB / 0.9527 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00217/0.5903, allocations: 1.729 MB / 0.9544 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001038/0.5904, allocations: 7.312 kB / 0.9544 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0009354/0.5914, allocations: 324 kB / 0.9547 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004913/0.5919, allocations: 213.2 kB / 0.9549 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004925/0.5924, allocations: 186.1 kB / 0.9551 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002975/0.5927, allocations: 313.9 kB / 0.9554 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003727/0.5931, allocations: 251.3 kB / 0.9557 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001638/0.5932, allocations: 131.5 kB / 0.9558 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002633/0.5935, allocations: 161.6 kB / 0.9559 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.781e-05/0.5936, allocations: 22.19 kB / 0.956 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003633/0.5939, allocations: 237.8 kB / 0.9562 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001012/0.594, allocations: 100.8 kB / 0.9563 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001151/0.5942, allocations: 131.8 kB / 0.9564 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004372/0.5946, allocations: 423.7 kB / 0.9568 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.5946, allocations: 0 / 0.9568 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.573e-06/0.5946, allocations: 0 / 0.9568 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.616e-06/0.5946, allocations: 0 / 0.9568 GB, free: 3.961 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.0008497/0.5955, allocations: 0.5498 MB / 0.9573 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.5955, allocations: 9.625 kB / 0.9574 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.157e-05/0.5956, allocations: 62.92 kB / 0.9574 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007154/0.5963, allocations: 92.48 kB / 0.9575 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002679/0.5966, allocations: 254.7 kB / 0.9577 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.905e-05/0.5966, allocations: 21.05 kB / 0.9578 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.213e-05/0.5967, allocations: 25.05 kB / 0.9578 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004861/0.5972, allocations: 373.3 kB / 0.9581 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.5973, allocations: 5.375 kB / 0.9581 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.197e-05/0.5973, allocations: 10.75 kB / 0.9582 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.474e-05/0.5974, allocations: 27.66 kB / 0.9582 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000445/0.5978, allocations: 303 kB / 0.9585 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001457/0.5993, allocations: 1.54 MB / 0.96 GB, free: 1.219 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003941/0.5997, allocations: 224.1 kB / 0.9602 GB, free: 1.098 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001542/0.5999, allocations: 115.8 kB / 0.9603 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001344/0.6, allocations: 91.55 kB / 0.9604 GB, free: 0.9336 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.021e-05/0.6001, allocations: 36.28 kB / 0.9604 GB, free: 0.8906 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=18): time 1.533e-06/0.6001, allocations: 0 / 0.9604 GB, free: 0.8906 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19): time 0.001117/0.6012, allocations: 0.7934 MB / 0.9612 GB, free: 348 kB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.874e-05/0.6012, allocations: 58 kB / 0.9613 GB, free: 280 kB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001531/0.6014, allocations: 197.7 kB / 0.9614 GB, free: 124 kB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.721e-05/0.6014, allocations: 31.11 kB / 0.9615 GB, free: 88 kB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.533e-05/0.6015, allocations: 159.6 kB / 0.9616 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.993e-05/0.6016, allocations: 67.75 kB / 0.9617 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001057/0.6017, allocations: 58.64 kB / 0.9617 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001254/0.6018, allocations: 335.8 kB / 0.9621 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001734/0.602, allocations: 117 kB / 0.9622 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002056/0.6022, allocations: 163.2 kB / 0.9623 GB, free: 15.33 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003685/0.6026, allocations: 298.3 kB / 0.9626 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.6026, allocations: 7.484 kB / 0.9626 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007194/0.6033, allocations: 414.3 kB / 0.963 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.6033, allocations: 5.062 kB / 0.963 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.6034, allocations: 2.25 kB / 0.963 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004254/0.6038, allocations: 98.22 kB / 0.9631 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002652/0.6041, allocations: 62.03 kB / 0.9632 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002304/0.6064, allocations: 1.868 MB / 0.965 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003055/0.6067, allocations: 19.58 kB / 0.965 GB, free: 13.13 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.265e-05/0.6068, allocations: 11.33 kB / 0.965 GB, free: 13.12 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002282/0.607, allocations: 157.2 kB / 0.9652 GB, free: 12.98 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.386e-05/0.6071, allocations: 16.53 kB / 0.9652 GB, free: 12.97 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00057/0.6077, allocations: 295.7 kB / 0.9655 GB, free: 12.8 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.718e-06/0.6077, allocations: 1.938 kB / 0.9655 GB, free: 12.8 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.584e-06/0.6077, allocations: 1.125 kB / 0.9655 GB, free: 12.8 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/0.6077, allocations: 11.91 kB / 0.9655 GB, free: 12.79 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001062/0.6088, allocations: 0.6972 MB / 0.9662 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.6088, allocations: 4 kB / 0.9662 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003256/0.6091, allocations: 62.58 kB / 0.9662 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.598e-06/0.6091, allocations: 10.03 kB / 0.9662 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.978e-05/0.6092, allocations: 6.188 kB / 0.9663 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.6092, allocations: 1.094 kB / 0.9663 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.6092, allocations: 1.125 kB / 0.9663 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006532/0.6098, allocations: 0.5141 MB / 0.9668 GB, free: 11.86 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001282/0.61, allocations: 118.9 kB / 0.9669 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.933e-05/0.61, allocations: 11.08 kB / 0.9669 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001804/0.6102, allocations: 14.52 kB / 0.9669 GB, free: 11.72 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.675e-05/0.6102, allocations: 9.453 kB / 0.9669 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.572e-05/0.6103, allocations: 5.375 kB / 0.9669 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001453/0.6104, allocations: 155.2 kB / 0.9671 GB, free: 11.59 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2e-07/0.6104, allocations: 0 / 0.9671 GB, free: 11.59 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004234/0.6109, allocations: 62 kB / 0.9671 GB, free: 11.59 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001145/0.612, allocations: 1.063 MB / 0.9682 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001009/0.613, allocations: 443.2 kB / 0.9686 GB, free: 10.45 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.613, allocations: 0 / 0.9686 GB, free: 10.45 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001642/0.6132, allocations: 125.1 kB / 0.9687 GB, free: 10.39 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004219/0.6136, allocations: 35.11 kB / 0.9687 GB, free: 10.37 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003822/0.6175, allocations: 2.88 MB / 0.9715 GB, free: 8.164 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003726/0.6179, allocations: 0.7702 MB / 0.9723 GB, free: 7.426 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001908/0.6181, allocations: 63.34 kB / 0.9724 GB, free: 7.395 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.6182, allocations: 71.31 kB / 0.9724 GB, free: 7.336 MB / 0.7325 GB Notification: Performance of SimCode: time 4.21e-07/0.6182, allocations: 0 / 0.9724 GB, free: 7.336 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02868/0.6469, allocations: 5.003 MB / 0.9773 GB, free: 4.852 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.994/9.641, allocations: 13.31 kB / 0.9773 GB, free: 4.84 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/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) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches