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.01015/0.01014, allocations: 100.2 kB / 15.73 MB, free: 6.047 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.001995/0.001995, allocations: 194 kB / 16.67 MB, free: 5.949 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.459/1.459, allocations: 222.9 MB / 240.4 MB, free: 15.08 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.6/2.6, allocations: 437 MB / 0.7105 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001413, allocations: 67.84 kB / 1.019 GB, free: 9.426 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.175/1.177, allocations: 151.6 MB / 1.167 GB, free: 3.844 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005814/1.183, allocations: 3.075 MB / 1.17 GB, free: 0.7539 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.003401/1.186, allocations: 1.73 MB / 1.171 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002712/1.187, allocations: 4 kB / 1.171 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.00139/1.188, allocations: 336.2 kB / 1.172 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0007175/1.189, allocations: 203.1 kB / 1.172 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006947/1.189, allocations: 183.5 kB / 1.172 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0005962/1.19, allocations: 319 kB / 1.172 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005079/1.191, allocations: 236.7 kB / 1.173 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003151/1.191, allocations: 143.5 kB / 1.173 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004933/1.191, allocations: 155.5 kB / 1.173 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 9.629e-05/1.191, allocations: 20 kB / 1.173 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005746/1.192, allocations: 247.5 kB / 1.173 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001641/1.192, allocations: 103.8 kB / 1.173 GB, free: 13.1 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.000177/1.192, allocations: 119.5 kB / 1.173 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0007743/1.193, allocations: 431 kB / 1.174 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 8.406e-06/1.193, allocations: 8 kB / 1.174 GB, free: 12.56 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.265e-06/1.193, allocations: 0 / 1.174 GB, free: 12.56 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.515e-05/1.193, allocations: 0 / 1.174 GB, free: 12.56 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.001335/1.195, allocations: 0.5415 MB / 1.174 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/1.195, allocations: 8.031 kB / 1.174 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008384/1.195, allocations: 100.6 kB / 1.174 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004229/1.196, allocations: 271.9 kB / 1.175 GB, free: 11.56 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.279e-05/1.196, allocations: 12.81 kB / 1.175 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001199/1.196, allocations: 28.55 kB / 1.175 GB, free: 11.52 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006253/1.197, allocations: 377.1 kB / 1.175 GB, free: 11.13 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.742e-05/1.197, allocations: 0 / 1.175 GB, free: 11.13 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.19e-05/1.197, allocations: 8 kB / 1.175 GB, free: 11.12 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001069/1.197, allocations: 32.42 kB / 1.175 GB, free: 11.09 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000528/1.197, allocations: 305.5 kB / 1.175 GB, free: 10.79 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00201/1.199, allocations: 1.529 MB / 1.177 GB, free: 9.109 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004708/1.2, allocations: 226.4 kB / 1.177 GB, free: 8.879 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001696/1.2, allocations: 116.8 kB / 1.177 GB, free: 8.762 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001546/1.2, allocations: 93.08 kB / 1.177 GB, free: 8.652 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.314e-05/1.2, allocations: 38.56 kB / 1.177 GB, free: 8.605 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=18): time 2.064e-06/1.2, allocations: 0 / 1.177 GB, free: 8.605 MB / 0.9044 GB Notification: Performance of matching and sorting (n=19): time 0.00139/1.202, allocations: 0.7876 MB / 1.178 GB, free: 7.77 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/1.202, allocations: 67.3 kB / 1.178 GB, free: 7.691 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002188/1.202, allocations: 187.7 kB / 1.178 GB, free: 7.5 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.678e-05/1.202, allocations: 29.7 kB / 1.178 GB, free: 7.465 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/1.202, allocations: 164.2 kB / 1.178 GB, free: 7.301 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 6.312e-05/1.202, allocations: 75.39 kB / 1.179 GB, free: 7.227 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001207/1.202, allocations: 53.69 kB / 1.179 GB, free: 7.168 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001153/1.202, allocations: 330.8 kB / 1.179 GB, free: 6.836 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001843/1.203, allocations: 115.9 kB / 1.179 GB, free: 6.723 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002251/1.203, allocations: 163.5 kB / 1.179 GB, free: 6.543 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003998/1.203, allocations: 294.5 kB / 1.179 GB, free: 6.234 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/1.203, allocations: 0 / 1.179 GB, free: 6.234 MB / 0.9044 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008125/1.204, allocations: 428.7 kB / 1.18 GB, free: 5.809 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/1.204, allocations: 4 kB / 1.18 GB, free: 5.805 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.525e-06/1.204, allocations: 4 kB / 1.18 GB, free: 5.801 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004823/1.205, allocations: 96.95 kB / 1.18 GB, free: 5.703 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002562/1.205, allocations: 59.83 kB / 1.18 GB, free: 5.645 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002155/1.207, allocations: 1.884 MB / 1.182 GB, free: 3.617 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002228/1.207, allocations: 19.95 kB / 1.182 GB, free: 3.598 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.808e-05/1.207, allocations: 12 kB / 1.182 GB, free: 3.586 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.0001909/1.208, allocations: 162.3 kB / 1.182 GB, free: 3.418 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.57e-05/1.208, allocations: 15.91 kB / 1.182 GB, free: 3.402 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000524/1.208, allocations: 293.6 kB / 1.182 GB, free: 3.109 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/1.208, allocations: 0 / 1.182 GB, free: 3.109 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.554e-06/1.208, allocations: 4 kB / 1.182 GB, free: 3.105 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/1.208, allocations: 3.938 kB / 1.182 GB, free: 3.102 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009585/1.209, allocations: 0.7068 MB / 1.183 GB, free: 2.332 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/1.209, allocations: 3.938 kB / 1.183 GB, free: 2.328 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003071/1.21, allocations: 59.89 kB / 1.183 GB, free: 2.27 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/1.21, allocations: 0 / 1.183 GB, free: 2.27 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.474e-05/1.21, allocations: 11.94 kB / 1.183 GB, free: 2.258 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.564e-06/1.21, allocations: 0 / 1.183 GB, free: 2.258 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/1.21, allocations: 4 kB / 1.183 GB, free: 2.254 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006425/1.21, allocations: 0.5202 MB / 1.184 GB, free: 1.715 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001389/1.21, allocations: 116.9 kB / 1.184 GB, free: 1.582 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.517e-05/1.21, allocations: 4.062 kB / 1.184 GB, free: 1.578 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001785/1.211, allocations: 15.98 kB / 1.184 GB, free: 1.562 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.502e-05/1.211, allocations: 11.98 kB / 1.184 GB, free: 1.551 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.595e-05/1.211, allocations: 8.062 kB / 1.184 GB, free: 1.543 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001481/1.211, allocations: 152.6 kB / 1.184 GB, free: 1.391 MB / 0.9044 GB Notification: Performance of sort global known variables: time 3.41e-07/1.211, allocations: 0 / 1.184 GB, free: 1.391 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0004096/1.211, allocations: 67.98 kB / 1.184 GB, free: 1.324 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.000197/1.211, allocations: 111.2 kB / 1.184 GB, free: 1.203 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0008265/1.212, allocations: 438.4 kB / 1.184 GB, free: 0.7617 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/1.212, allocations: 3.938 kB / 1.184 GB, free: 0.7578 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001892/1.212, allocations: 123.9 kB / 1.185 GB, free: 0.6328 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004124/1.213, allocations: 29.55 kB / 1.185 GB, free: 0.6055 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001339/1.214, allocations: 0.6249 MB / 1.185 GB, free: 15.95 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004188/1.215, allocations: 0.7753 MB / 1.186 GB, free: 15.15 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0001789/1.215, allocations: 57.91 kB / 1.186 GB, free: 15.09 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.724e-05/1.215, allocations: 15.44 kB / 1.186 GB, free: 15.08 MB / 0.92 GB Notification: Performance of SimCode: time 2.7e-07/1.215, allocations: 0 / 1.186 GB, free: 15.08 MB / 0.92 GB Notification: Performance of Templates: time 0.007657/1.223, allocations: 2.839 MB / 1.189 GB, free: 12.25 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 -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/jenkins/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