Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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: 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_11_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_11_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.0008944/0.0008944, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005475/0.005475, allocations: 169.1 kB / 16.26 MB, free: 6.652 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.608/1.608, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 3.074/3.074, allocations: 470.6 MB / 0.7441 GB, free: 8.812 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003661/0.0003662, allocations: 8.781 kB / 0.9123 GB, free: 34.2 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3377/0.3381, allocations: 161.4 MB / 1.07 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004122/0.3422, allocations: 2.754 MB / 1.073 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002989/0.3453, allocations: 1.718 MB / 1.074 GB, free: 6.902 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001415/0.3454, allocations: 0 / 1.074 GB, free: 6.902 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002017/0.3457, allocations: 35.72 kB / 1.074 GB, free: 6.867 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005831/0.3462, allocations: 191.3 kB / 1.074 GB, free: 6.68 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005103/0.3468, allocations: 176.1 kB / 1.075 GB, free: 6.508 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0005449/0.3473, allocations: 466.7 kB / 1.075 GB, free: 6.051 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001032/0.3484, allocations: 0.5169 MB / 1.076 GB, free: 5.5 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002054/0.3486, allocations: 111.5 kB / 1.076 GB, free: 5.391 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003481/0.3489, allocations: 151.4 kB / 1.076 GB, free: 5.242 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.802e-05/0.349, allocations: 12 kB / 1.076 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005042/0.3495, allocations: 287.5 kB / 1.076 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001278/0.3496, allocations: 91.7 kB / 1.076 GB, free: 4.859 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001531/0.3498, allocations: 137.1 kB / 1.076 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005476/0.3503, allocations: 422.9 kB / 1.077 GB, free: 4.305 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3504, allocations: 0 / 1.077 GB, free: 4.305 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.422e-06/0.3504, allocations: 0 / 1.077 GB, free: 4.305 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.3504, allocations: 0 / 1.077 GB, free: 4.305 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.0009658/0.3513, allocations: 0.4991 MB / 1.077 GB, free: 3.758 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.3514, allocations: 12.03 kB / 1.077 GB, free: 3.746 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007336/0.3521, allocations: 92.55 kB / 1.077 GB, free: 3.656 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003401/0.3525, allocations: 255.9 kB / 1.078 GB, free: 3.367 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.348e-05/0.3525, allocations: 20.75 kB / 1.078 GB, free: 3.348 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001079/0.3526, allocations: 24.47 kB / 1.078 GB, free: 3.324 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006155/0.3533, allocations: 381.1 kB / 1.078 GB, free: 2.934 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.3533, allocations: 0 / 1.078 GB, free: 2.934 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.018e-05/0.3533, allocations: 15.98 kB / 1.078 GB, free: 2.918 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001007/0.3534, allocations: 28.41 kB / 1.078 GB, free: 2.891 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005115/0.354, allocations: 305.5 kB / 1.078 GB, free: 2.59 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002035/0.356, allocations: 1.525 MB / 1.08 GB, free: 0.9141 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004675/0.3565, allocations: 234.4 kB / 1.08 GB, free: 0.6758 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001725/0.3567, allocations: 116.8 kB / 1.08 GB, free: 0.5586 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001596/0.3568, allocations: 89.09 kB / 1.08 GB, free: 464 kB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.574e-05/0.3569, allocations: 42.5 kB / 1.08 GB, free: 412 kB / 0.8262 GB Notification: Performance of pre-optimization done (n=18): time 1.523e-06/0.3569, allocations: 0 / 1.08 GB, free: 412 kB / 0.8262 GB Notification: Performance of matching and sorting (n=19): time 0.001413/0.3583, allocations: 0.782 MB / 1.081 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.373e-05/0.3584, allocations: 59.39 kB / 1.081 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002203/0.3586, allocations: 206.4 kB / 1.081 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.997e-05/0.3586, allocations: 29.7 kB / 1.081 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000113/0.3588, allocations: 155.9 kB / 1.081 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.558e-05/0.3588, allocations: 74.98 kB / 1.082 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.748e-05/0.3589, allocations: 29.7 kB / 1.082 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001612/0.3591, allocations: 330.8 kB / 1.082 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001932/0.3593, allocations: 115.9 kB / 1.082 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002268/0.3595, allocations: 161.9 kB / 1.082 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004348/0.3599, allocations: 303.1 kB / 1.082 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.36, allocations: 3.938 kB / 1.082 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007985/0.3608, allocations: 415.8 kB / 1.083 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.3608, allocations: 8 kB / 1.083 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.3608, allocations: 0 / 1.083 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004429/0.3613, allocations: 105 kB / 1.083 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002598/0.3615, allocations: 51.89 kB / 1.083 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002099/0.3636, allocations: 1.737 MB / 1.085 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002188/0.3639, allocations: 16.02 kB / 1.085 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.467e-05/0.3639, allocations: 8 kB / 1.085 GB, free: 11.56 MB / 0.8419 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.0001927/0.3641, allocations: 161.8 kB / 1.085 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.272e-05/0.3642, allocations: 15.81 kB / 1.085 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000533/0.3647, allocations: 300.8 kB / 1.085 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.3647, allocations: 4 kB / 1.085 GB, free: 11.08 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.392e-06/0.3647, allocations: 192 / 1.085 GB, free: 11.08 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.3647, allocations: 4 kB / 1.085 GB, free: 11.08 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009782/0.3657, allocations: 0.7041 MB / 1.086 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.379e-06/0.3657, allocations: 4 kB / 1.086 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000307/0.366, allocations: 55.89 kB / 1.086 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/0.3661, allocations: 7.938 kB / 1.086 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.557e-05/0.3661, allocations: 11.92 kB / 1.086 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.3661, allocations: 4 kB / 1.086 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.3661, allocations: 8 kB / 1.086 GB, free: 10.22 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006826/0.3668, allocations: 0.5085 MB / 1.086 GB, free: 9.691 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001308/0.3669, allocations: 120.9 kB / 1.087 GB, free: 9.555 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.25e-05/0.367, allocations: 4 kB / 1.087 GB, free: 9.551 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001892/0.3672, allocations: 19.92 kB / 1.087 GB, free: 9.531 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.614e-05/0.3672, allocations: 12.05 kB / 1.087 GB, free: 9.52 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.339e-05/0.3672, allocations: 4 kB / 1.087 GB, free: 9.516 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001459/0.3674, allocations: 148.1 kB / 1.087 GB, free: 9.367 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3674, allocations: 0 / 1.087 GB, free: 9.367 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003822/0.3678, allocations: 64 kB / 1.087 GB, free: 9.305 MB / 0.8419 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.000173/0.368, allocations: 119.2 kB / 1.087 GB, free: 9.176 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0007711/0.3687, allocations: 422 kB / 1.087 GB, free: 8.754 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3688, allocations: 0 / 1.087 GB, free: 8.754 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001829/0.3689, allocations: 119.8 kB / 1.087 GB, free: 8.637 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004271/0.3694, allocations: 37.8 kB / 1.087 GB, free: 8.602 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001402/0.3708, allocations: 0.7612 MB / 1.088 GB, free: 7.809 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000466/0.3713, allocations: 0.7755 MB / 1.089 GB, free: 7.008 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.000189/0.3715, allocations: 57.91 kB / 1.089 GB, free: 6.953 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.006e-05/0.3715, allocations: 19.44 kB / 1.089 GB, free: 6.934 MB / 0.8419 GB Notification: Performance of SimCode: time 2.51e-07/0.3716, allocations: 0 / 1.089 GB, free: 6.934 MB / 0.8419 GB Notification: Performance of Templates: time 0.00708/0.3786, allocations: 2.649 MB / 1.092 GB, free: 4.297 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches