Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001858/0.001858, allocations: 110.9 kB / 16.41 MB, free: 6.492 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.002042/0.002042, allocations: 189.2 kB / 17.34 MB, free: 5.762 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.488/1.488, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.79/2.79, allocations: 437.1 MB / 0.7112 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002054/0.002054, allocations: 63.91 kB / 1.019 GB, free: 9.398 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.03/1.032, allocations: 151.6 MB / 1.167 GB, free: 3.973 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005193/1.037, allocations: 3.084 MB / 1.17 GB, free: 0.875 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.003045/1.04, allocations: 1.718 MB / 1.172 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001509/1.04, allocations: 7.938 kB / 1.172 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001129/1.041, allocations: 330.7 kB / 1.172 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0006049/1.042, allocations: 219.1 kB / 1.173 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005668/1.042, allocations: 171.6 kB / 1.173 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0004337/1.043, allocations: 319 kB / 1.173 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004509/1.043, allocations: 244.7 kB / 1.173 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000225/1.044, allocations: 139.5 kB / 1.173 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003475/1.044, allocations: 155.5 kB / 1.174 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 4.343e-05/1.044, allocations: 27.92 kB / 1.174 GB, free: 13.56 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004804/1.045, allocations: 243.6 kB / 1.174 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001327/1.045, allocations: 107.7 kB / 1.174 GB, free: 13.22 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.000144/1.045, allocations: 115.5 kB / 1.174 GB, free: 13.11 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0006199/1.045, allocations: 431.4 kB / 1.174 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/1.045, allocations: 0 / 1.174 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.483e-06/1.045, allocations: 0 / 1.174 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 7.594e-06/1.045, allocations: 0 / 1.174 GB, free: 12.68 MB / 0.9044 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.00108/1.047, allocations: 0.5454 MB / 1.175 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/1.047, allocations: 16.03 kB / 1.175 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007774/1.047, allocations: 96.64 kB / 1.175 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003876/1.048, allocations: 266.2 kB / 1.175 GB, free: 11.68 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.369e-05/1.048, allocations: 20.75 kB / 1.175 GB, free: 11.66 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/1.048, allocations: 20.56 kB / 1.175 GB, free: 11.64 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006171/1.049, allocations: 385.1 kB / 1.176 GB, free: 11.25 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.658e-05/1.049, allocations: 0 / 1.176 GB, free: 11.25 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.924e-05/1.049, allocations: 11.98 kB / 1.176 GB, free: 11.23 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001016/1.049, allocations: 28.42 kB / 1.176 GB, free: 11.2 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005275/1.049, allocations: 305.5 kB / 1.176 GB, free: 10.91 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002037/1.051, allocations: 1.533 MB / 1.178 GB, free: 9.223 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000481/1.052, allocations: 231.5 kB / 1.178 GB, free: 8.988 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001732/1.052, allocations: 116.8 kB / 1.178 GB, free: 8.871 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001661/1.052, allocations: 89.09 kB / 1.178 GB, free: 8.766 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.472e-05/1.052, allocations: 34.5 kB / 1.178 GB, free: 8.723 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=18): time 1.964e-06/1.052, allocations: 0 / 1.178 GB, free: 8.723 MB / 0.9044 GB Notification: Performance of matching and sorting (n=19): time 0.001465/1.054, allocations: 0.7937 MB / 1.179 GB, free: 7.879 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.556e-05/1.054, allocations: 55.36 kB / 1.179 GB, free: 7.812 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002215/1.054, allocations: 195.7 kB / 1.179 GB, free: 7.613 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.811e-05/1.054, allocations: 29.7 kB / 1.179 GB, free: 7.578 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001118/1.054, allocations: 164.2 kB / 1.179 GB, free: 7.414 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 7.251e-05/1.054, allocations: 71.38 kB / 1.179 GB, free: 7.344 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/1.054, allocations: 57.69 kB / 1.179 GB, free: 7.281 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001594/1.055, allocations: 330.8 kB / 1.18 GB, free: 6.949 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001926/1.055, allocations: 115.9 kB / 1.18 GB, free: 6.836 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002352/1.055, allocations: 167.5 kB / 1.18 GB, free: 6.652 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004382/1.055, allocations: 294.5 kB / 1.18 GB, free: 6.344 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/1.055, allocations: 0 / 1.18 GB, free: 6.344 MB / 0.9044 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008279/1.056, allocations: 424.7 kB / 1.181 GB, free: 5.922 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/1.056, allocations: 4 kB / 1.181 GB, free: 5.918 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/1.056, allocations: 0 / 1.181 GB, free: 5.918 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000441/1.057, allocations: 101 kB / 1.181 GB, free: 5.816 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002755/1.057, allocations: 51.89 kB / 1.181 GB, free: 5.766 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002297/1.059, allocations: 1.891 MB / 1.183 GB, free: 3.73 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00023/1.06, allocations: 19.92 kB / 1.183 GB, free: 3.711 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.146e-05/1.06, allocations: 4 kB / 1.183 GB, free: 3.707 MB / 0.9044 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.0001967/1.06, allocations: 158.3 kB / 1.183 GB, free: 3.543 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.208e-05/1.06, allocations: 15.91 kB / 1.183 GB, free: 3.527 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005589/1.06, allocations: 297.7 kB / 1.183 GB, free: 3.23 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/1.06, allocations: 4 kB / 1.183 GB, free: 3.227 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-06/1.06, allocations: 0 / 1.183 GB, free: 3.227 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/1.06, allocations: 3.938 kB / 1.183 GB, free: 3.223 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001058/1.062, allocations: 0.7094 MB / 1.184 GB, free: 2.453 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/1.062, allocations: 0 / 1.184 GB, free: 2.453 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003144/1.062, allocations: 55.95 kB / 1.184 GB, free: 2.398 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/1.062, allocations: 8 kB / 1.184 GB, free: 2.391 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.352e-05/1.062, allocations: 11.92 kB / 1.184 GB, free: 2.379 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/1.062, allocations: 4 kB / 1.184 GB, free: 2.375 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/1.062, allocations: 0 / 1.184 GB, free: 2.375 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006985/1.063, allocations: 0.5136 MB / 1.184 GB, free: 1.84 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000132/1.063, allocations: 121 kB / 1.184 GB, free: 1.703 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.574e-05/1.063, allocations: 8.062 kB / 1.184 GB, free: 1.695 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00018/1.063, allocations: 11.98 kB / 1.184 GB, free: 1.684 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.052e-05/1.063, allocations: 12.05 kB / 1.184 GB, free: 1.672 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.658e-05/1.063, allocations: 12 kB / 1.184 GB, free: 1.66 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001636/1.063, allocations: 144.6 kB / 1.185 GB, free: 1.516 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.4e-07/1.063, allocations: 0 / 1.185 GB, free: 1.516 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003886/1.064, allocations: 75.92 kB / 1.185 GB, free: 1.441 MB / 0.9044 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.0002102/1.064, allocations: 107.2 kB / 1.185 GB, free: 1.324 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0008639/1.065, allocations: 454.1 kB / 1.185 GB, free: 0.8672 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/1.065, allocations: 0 / 1.185 GB, free: 0.8672 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001891/1.065, allocations: 115.9 kB / 1.185 GB, free: 0.7539 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004175/1.065, allocations: 48.34 kB / 1.185 GB, free: 0.707 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001261/1.067, allocations: 0.6089 MB / 1.186 GB, free: 68 kB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004571/1.067, allocations: 0.7792 MB / 1.187 GB, free: 15.26 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0001702/1.067, allocations: 57.89 kB / 1.187 GB, free: 15.21 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.463e-05/1.067, allocations: 19.44 kB / 1.187 GB, free: 15.19 MB / 0.92 GB Notification: Performance of SimCode: time 5.21e-07/1.067, allocations: 0 / 1.187 GB, free: 15.19 MB / 0.92 GB Notification: Performance of Templates: time 0.007185/1.075, allocations: 2.845 MB / 1.19 GB, free: 12.36 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches