Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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: translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001149/0.001149, allocations: 172.7 kB / 15.95 MB, free: 208 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.543/1.543, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.884/2.884, allocations: 462.6 MB / 0.736 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003376/0.0003377, allocations: 9.25 kB / 0.9021 GB, free: 36.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3295, allocations: 159.6 MB / 1.058 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.00396/0.3335, allocations: 2.667 MB / 1.061 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002927/0.3364, allocations: 1.618 MB / 1.062 GB, free: 0.9922 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001997/0.3366, allocations: 4 kB / 1.062 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002157/0.3369, allocations: 39.59 kB / 1.062 GB, free: 0.9492 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0005926/0.3375, allocations: 159.3 kB / 1.062 GB, free: 0.793 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005023/0.338, allocations: 139.7 kB / 1.063 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005029/0.3385, allocations: 370.9 kB / 1.063 GB, free: 300 kB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00103/0.3395, allocations: 499.2 kB / 1.063 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002361/0.3398, allocations: 107.6 kB / 1.063 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003859/0.3402, allocations: 143.5 kB / 1.064 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.55e-05/0.3402, allocations: 8 kB / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003796/0.3406, allocations: 151.7 kB / 1.064 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.000116/0.3408, allocations: 91.77 kB / 1.064 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.078e-05/0.3408, allocations: 61.64 kB / 1.064 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004439/0.3413, allocations: 307.5 kB / 1.064 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3413, allocations: 0 / 1.064 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.423e-06/0.3413, allocations: 4 kB / 1.064 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.438e-06/0.3413, allocations: 3.938 kB / 1.064 GB, free: 14.91 MB / 0.8262 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.0009257/0.3423, allocations: 0.5068 MB / 1.065 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/0.3423, allocations: 12.03 kB / 1.065 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007521/0.3431, allocations: 91.61 kB / 1.065 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004443/0.3435, allocations: 256 kB / 1.065 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.638e-05/0.3436, allocations: 20.42 kB / 1.065 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001141/0.3437, allocations: 31.84 kB / 1.065 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000796/0.3445, allocations: 369 kB / 1.065 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.3445, allocations: 0 / 1.065 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.393e-05/0.3446, allocations: 8 kB / 1.065 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.494e-05/0.3447, allocations: 28.42 kB / 1.065 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005405/0.3452, allocations: 309.5 kB / 1.066 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002205/0.3474, allocations: 1.529 MB / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004823/0.3479, allocations: 230.4 kB / 1.067 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002907/0.3482, allocations: 116.8 kB / 1.068 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001712/0.3484, allocations: 93.08 kB / 1.068 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.956e-05/0.3485, allocations: 34.5 kB / 1.068 GB, free: 11 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=18): time 1.193e-06/0.3485, allocations: 0 / 1.068 GB, free: 11 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19): time 0.001408/0.3499, allocations: 0.7901 MB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.645e-05/0.3499, allocations: 59.41 kB / 1.069 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002149/0.3502, allocations: 195 kB / 1.069 GB, free: 9.891 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.379e-05/0.3502, allocations: 29.7 kB / 1.069 GB, free: 9.855 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001115/0.3503, allocations: 159.8 kB / 1.069 GB, free: 9.695 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.941e-05/0.3504, allocations: 71.09 kB / 1.069 GB, free: 9.625 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.649e-05/0.3504, allocations: 4 kB / 1.069 GB, free: 9.621 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001486/0.3505, allocations: 330.8 kB / 1.069 GB, free: 9.289 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001762/0.3507, allocations: 107.9 kB / 1.069 GB, free: 9.184 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002177/0.351, allocations: 173.9 kB / 1.07 GB, free: 8.992 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002147/0.3512, allocations: 137.5 kB / 1.07 GB, free: 8.859 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3512, allocations: 0 / 1.07 GB, free: 8.859 MB / 0.8262 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007833/0.352, allocations: 413.9 kB / 1.07 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.046e-05/0.352, allocations: 4 kB / 1.07 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.352, allocations: 0 / 1.07 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004111/0.3525, allocations: 104.9 kB / 1.07 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002411/0.3527, allocations: 47.91 kB / 1.07 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002134/0.3549, allocations: 1.742 MB / 1.072 GB, free: 6.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002024/0.3551, allocations: 20.02 kB / 1.072 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.54e-05/0.3551, allocations: 11.98 kB / 1.072 GB, free: 6.379 MB / 0.8262 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.0002031/0.3553, allocations: 158.5 kB / 1.072 GB, free: 6.215 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.362e-05/0.3554, allocations: 15.81 kB / 1.072 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004861/0.3559, allocations: 291.4 kB / 1.072 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.3559, allocations: 0 / 1.072 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-06/0.3559, allocations: 3.938 kB / 1.072 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.832e-06/0.3559, allocations: 7.984 kB / 1.072 GB, free: 5.902 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009473/0.3569, allocations: 0.708 MB / 1.073 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.3569, allocations: 0 / 1.073 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002849/0.3572, allocations: 59.95 kB / 1.073 GB, free: 5.074 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/0.3572, allocations: 0 / 1.073 GB, free: 5.074 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.236e-05/0.3572, allocations: 7.938 kB / 1.073 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.49e-06/0.3572, allocations: 7.938 kB / 1.073 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.3572, allocations: 0 / 1.073 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006562/0.3579, allocations: 0.5193 MB / 1.074 GB, free: 4.52 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001232/0.358, allocations: 116.9 kB / 1.074 GB, free: 4.387 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.236e-05/0.3581, allocations: 8 kB / 1.074 GB, free: 4.379 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001627/0.3583, allocations: 15.97 kB / 1.074 GB, free: 4.363 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.613e-05/0.3583, allocations: 15.94 kB / 1.074 GB, free: 4.348 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.336e-05/0.3583, allocations: 4 kB / 1.074 GB, free: 4.344 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001465/0.3585, allocations: 152.1 kB / 1.074 GB, free: 4.191 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.3585, allocations: 0 / 1.074 GB, free: 4.191 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003955/0.3589, allocations: 64 kB / 1.074 GB, free: 4.129 MB / 0.8262 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.0001913/0.3591, allocations: 107.2 kB / 1.074 GB, free: 4.012 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0007707/0.3599, allocations: 423.2 kB / 1.075 GB, free: 3.586 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.3599, allocations: 0 / 1.075 GB, free: 3.586 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000184/0.3601, allocations: 123.9 kB / 1.075 GB, free: 3.465 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004108/0.3605, allocations: 33.48 kB / 1.075 GB, free: 3.434 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001391/0.3619, allocations: 0.7605 MB / 1.075 GB, free: 2.641 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004371/0.3623, allocations: 0.7755 MB / 1.076 GB, free: 1.836 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001887/0.3625, allocations: 53.91 kB / 1.076 GB, free: 1.785 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.631e-05/0.3626, allocations: 19.44 kB / 1.076 GB, free: 1.766 MB / 0.8262 GB Notification: Performance of SimCode: time 2e-07/0.3626, allocations: 0 / 1.076 GB, free: 1.766 MB / 0.8262 GB Notification: Performance of Templates: time 0.006659/0.3693, allocations: 2.581 MB / 1.079 GB, free: 15.2 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches