Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001607/0.001607, allocations: 80.45 kB / 19.18 MB, free: 2.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001759/0.001759, allocations: 160.8 kB / 22.45 MB, free: 5.375 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.646/1.646, allocations: 177.2 MB / 202.8 MB, free: 9.16 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.084/3.084, allocations: 389 MB / 0.633 GB, free: 0.9961 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.765e-06/2.765e-06, allocations: 0 / 1 GB, free: 7.312 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 4.41e-05/4.687e-05, allocations: 2.281 kB / 1 GB, free: 7.309 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.008821/0.008868, allocations: 2.505 MB / 1.003 GB, free: 4.797 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.003091/0.01196, allocations: 0.7556 MB / 1.003 GB, free: 4.039 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002389/0.0122, allocations: 0 / 1.003 GB, free: 4.039 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.002348/0.01454, allocations: 0.5374 MB / 1.004 GB, free: 3.496 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0006849/0.01523, allocations: 111.3 kB / 1.004 GB, free: 3.387 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006346/0.01586, allocations: 114.3 kB / 1.004 GB, free: 3.277 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0005493/0.01641, allocations: 207.2 kB / 1.004 GB, free: 3.074 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006295/0.01704, allocations: 130.1 kB / 1.004 GB, free: 2.938 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003694/0.01741, allocations: 123.8 kB / 1.004 GB, free: 2.816 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005227/0.01794, allocations: 83.77 kB / 1.005 GB, free: 2.734 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 7.492e-05/0.01801, allocations: 12 kB / 1.005 GB, free: 2.723 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004574/0.01847, allocations: 103.7 kB / 1.005 GB, free: 2.621 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001777/0.01865, allocations: 59.88 kB / 1.005 GB, free: 2.562 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001683/0.01881, allocations: 51.84 kB / 1.005 GB, free: 2.512 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0007545/0.01957, allocations: 223.3 kB / 1.005 GB, free: 2.293 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 1.421e-05/0.01958, allocations: 4 kB / 1.005 GB, free: 2.289 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.605e-06/0.01958, allocations: 3.938 kB / 1.005 GB, free: 2.285 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 2.256e-05/0.01961, allocations: 0 / 1.005 GB, free: 2.285 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.001352/0.02096, allocations: 381.8 kB / 1.005 GB, free: 1.879 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 7.07e-05/0.02103, allocations: 8.031 kB / 1.005 GB, free: 1.871 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007243/0.02175, allocations: 44.8 kB / 1.005 GB, free: 1.828 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004923/0.02225, allocations: 157.6 kB / 1.006 GB, free: 1.648 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.818e-05/0.02228, allocations: 12.64 kB / 1.006 GB, free: 1.637 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.118e-05/0.02234, allocations: 12.38 kB / 1.006 GB, free: 1.625 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007231/0.02306, allocations: 249.2 kB / 1.006 GB, free: 1.355 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.165e-05/0.02308, allocations: 12.12 kB / 1.006 GB, free: 1.344 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.918e-05/0.02312, allocations: 4.375 kB / 1.006 GB, free: 1.34 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.569e-05/0.0232, allocations: 24.2 kB / 1.006 GB, free: 1.316 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004564/0.02365, allocations: 140.7 kB / 1.006 GB, free: 1.18 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001834/0.02549, allocations: 0.782 MB / 1.007 GB, free: 356 kB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000149/0.02563, allocations: 42.56 kB / 1.007 GB, free: 304 kB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.215e-05/0.0257, allocations: 12.86 kB / 1.007 GB, free: 288 kB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.221e-05/0.02573, allocations: 8.078 kB / 1.007 GB, free: 280 kB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.371e-05/0.02578, allocations: 34.56 kB / 1.007 GB, free: 236 kB / 0.9512 GB Notification: Performance of pre-optimization done (n=4): time 1.854e-06/0.02578, allocations: 3.938 kB / 1.007 GB, free: 232 kB / 0.9512 GB Notification: Performance of matching and sorting (n=4): time 0.0003546/0.02614, allocations: 69.64 kB / 1.007 GB, free: 156 kB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.094e-05/0.0262, allocations: 55.41 kB / 1.007 GB, free: 88 kB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000274/0.02647, allocations: 143.5 kB / 1.007 GB, free: 15.94 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.523e-05/0.02651, allocations: 29.7 kB / 1.007 GB, free: 15.9 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001764/0.02669, allocations: 155.5 kB / 1.007 GB, free: 15.75 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.722e-05/0.02671, allocations: 11.84 kB / 1.007 GB, free: 15.73 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.875e-05/0.02681, allocations: 37.66 kB / 1.007 GB, free: 15.69 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0002275/0.02704, allocations: 318.8 kB / 1.008 GB, free: 15.37 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001067/0.02715, allocations: 36.84 kB / 1.008 GB, free: 15.33 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001703/0.02732, allocations: 93.36 kB / 1.008 GB, free: 15.21 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002948/0.02761, allocations: 121.3 kB / 1.008 GB, free: 15.05 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.02761, allocations: 7.938 kB / 1.008 GB, free: 15.05 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003886/0.028, allocations: 129.6 kB / 1.008 GB, free: 14.91 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.384e-05/0.02803, allocations: 4 kB / 1.008 GB, free: 14.91 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.02804, allocations: 4 kB / 1.008 GB, free: 14.91 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.022e-05/0.02807, allocations: 8.031 kB / 1.008 GB, free: 14.9 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002059/0.02828, allocations: 23.98 kB / 1.008 GB, free: 14.88 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.961e-05/0.0283, allocations: 12.25 kB / 1.008 GB, free: 14.86 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001399/0.02844, allocations: 15.91 kB / 1.008 GB, free: 14.85 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.09e-05/0.02846, allocations: 7.938 kB / 1.008 GB, free: 14.84 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002043/0.02866, allocations: 132.1 kB / 1.008 GB, free: 14.71 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001689/0.02883, allocations: 81.44 kB / 1.008 GB, free: 14.59 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002799/0.02911, allocations: 129.2 kB / 1.008 GB, free: 14.43 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.134e-06/0.02911, allocations: 0 / 1.008 GB, free: 14.43 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0003926/0.0295, allocations: 121.5 kB / 1.009 GB, free: 14.31 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.02952, allocations: 8.312 kB / 1.009 GB, free: 14.3 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.02953, allocations: 11.98 kB / 1.009 GB, free: 14.29 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.568e-06/0.02954, allocations: 4 kB / 1.009 GB, free: 14.29 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001552/0.0297, allocations: 19.94 kB / 1.009 GB, free: 14.27 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.0297, allocations: 4 kB / 1.009 GB, free: 14.26 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001201/0.02982, allocations: 15.88 kB / 1.009 GB, free: 14.25 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.595e-05/0.02984, allocations: 8 kB / 1.009 GB, free: 14.24 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (14): * Single equations (assignments): 14 * 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 prepare postOptimizeDAE: time 0.0001906/0.03003, allocations: 196.1 kB / 1.009 GB, free: 14.04 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.53e-05/0.03008, allocations: 7.953 kB / 1.009 GB, free: 14.03 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.571e-05/0.03013, allocations: 8.344 kB / 1.009 GB, free: 14.02 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.03013, allocations: 0 / 1.009 GB, free: 14.02 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.03014, allocations: 8 kB / 1.009 GB, free: 14.01 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.03015, allocations: 0 / 1.009 GB, free: 14.01 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007224/0.03087, allocations: 416.6 kB / 1.009 GB, free: 13.55 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.03087, allocations: 0 / 1.009 GB, free: 13.55 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.375e-05/0.03094, allocations: 8 kB / 1.009 GB, free: 13.55 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.91e-06/0.03094, allocations: 0 / 1.009 GB, free: 13.55 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.123e-05/0.03095, allocations: 0 / 1.009 GB, free: 13.55 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-05/0.03096, allocations: 7.938 kB / 1.009 GB, free: 13.54 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.03097, allocations: 3.938 kB / 1.009 GB, free: 13.54 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002536/0.03122, allocations: 115.7 kB / 1.009 GB, free: 13.39 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.117e-05/0.03127, allocations: 7.953 kB / 1.009 GB, free: 13.39 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.92e-05/0.03131, allocations: 4 kB / 1.009 GB, free: 13.38 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.027e-05/0.03137, allocations: 3.938 kB / 1.009 GB, free: 13.38 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.559e-05/0.03141, allocations: 11.98 kB / 1.009 GB, free: 13.37 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-06/0.03141, allocations: 0 / 1.009 GB, free: 13.37 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001494/0.03156, allocations: 105.7 kB / 1.009 GB, free: 13.27 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.6e-07/0.03156, allocations: 0 / 1.009 GB, free: 13.27 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0007169/0.03228, allocations: 59.84 kB / 1.01 GB, free: 13.21 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 simulation (4): * Single equations (assignments): 4 * 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.0002013/0.03248, allocations: 103.2 kB / 1.01 GB, free: 13.1 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003988/0.03288, allocations: 107.7 kB / 1.01 GB, free: 12.99 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.03288, allocations: 0 / 1.01 GB, free: 12.99 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 5.015e-05/0.03293, allocations: 17.19 kB / 1.01 GB, free: 12.98 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004543/0.03339, allocations: 19.98 kB / 1.01 GB, free: 12.96 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009013/0.03429, allocations: 280.7 kB / 1.01 GB, free: 12.64 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002067/0.0345, allocations: 102.3 kB / 1.01 GB, free: 12.53 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001374/0.03463, allocations: 32.73 kB / 1.01 GB, free: 12.5 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.38e-05/0.03469, allocations: 12.5 kB / 1.01 GB, free: 12.48 MB / 0.9669 GB Notification: Performance of SimCode: time 7.62e-07/0.03469, allocations: 0 / 1.01 GB, free: 12.48 MB / 0.9669 GB Notification: Performance of Templates: time 0.006538/0.04123, allocations: 0.7919 MB / 1.011 GB, free: 11.71 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.194629900157452]