Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.AC.OnePhase.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.001829/0.001829, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.002744/0.002744, allocations: 216.5 kB / 22.25 MB, free: 5.082 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.564/1.564, allocations: 230.6 MB / 256 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.203/3.203, allocations: 0.4899 GB / 0.7951 GB, free: 33.46 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003377/0.003377, allocations: 83.06 kB / 1.154 GB, free: 25.43 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3681/0.3715, allocations: 176.1 MB / 1.326 GB, free: 1.461 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005267/0.3768, allocations: 3.213 MB / 1.329 GB, free: 14.24 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.003144/0.3799, allocations: 1.819 MB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001437/0.38, allocations: 7.938 kB / 1.331 GB, free: 12.4 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001101/0.3811, allocations: 350 kB / 1.332 GB, free: 12.06 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0005582/0.3817, allocations: 219.1 kB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005337/0.3822, allocations: 175.5 kB / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004271/0.3827, allocations: 327 kB / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003496/0.383, allocations: 165.5 kB / 1.332 GB, free: 11.19 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002742/0.3833, allocations: 147.5 kB / 1.333 GB, free: 11.04 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003327/0.3836, allocations: 179.4 kB / 1.333 GB, free: 10.87 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.742e-05/0.3837, allocations: 20 kB / 1.333 GB, free: 10.85 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004339/0.3841, allocations: 247.5 kB / 1.333 GB, free: 10.61 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001243/0.3842, allocations: 99.72 kB / 1.333 GB, free: 10.51 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001309/0.3843, allocations: 119.5 kB / 1.333 GB, free: 10.39 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005784/0.3849, allocations: 426.5 kB / 1.334 GB, free: 9.973 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.3849, allocations: 0 / 1.334 GB, free: 9.973 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3849, allocations: 3.938 kB / 1.334 GB, free: 9.969 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.253e-06/0.3849, allocations: 0 / 1.334 GB, free: 9.969 MB / 1.029 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.00102/0.386, allocations: 497.3 kB / 1.334 GB, free: 9.453 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.386, allocations: 12.03 kB / 1.334 GB, free: 9.441 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007353/0.3867, allocations: 92.69 kB / 1.334 GB, free: 9.352 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003539/0.3871, allocations: 191.6 kB / 1.334 GB, free: 9.141 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.935e-05/0.3871, allocations: 20.81 kB / 1.334 GB, free: 9.121 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.3872, allocations: 36.48 kB / 1.334 GB, free: 9.086 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005929/0.3878, allocations: 372.7 kB / 1.335 GB, free: 8.695 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.3878, allocations: 0 / 1.335 GB, free: 8.695 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.57e-05/0.3879, allocations: 12 kB / 1.335 GB, free: 8.684 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.833e-05/0.388, allocations: 28.41 kB / 1.335 GB, free: 8.656 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004924/0.3884, allocations: 301.5 kB / 1.335 GB, free: 8.363 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001935/0.3904, allocations: 1.503 MB / 1.337 GB, free: 6.711 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004484/0.3908, allocations: 218.4 kB / 1.337 GB, free: 6.488 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001621/0.391, allocations: 105 kB / 1.337 GB, free: 6.383 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001078/0.3911, allocations: 12 kB / 1.337 GB, free: 6.371 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.15e-05/0.3911, allocations: 38.45 kB / 1.337 GB, free: 6.324 MB / 1.029 GB Notification: Performance of pre-optimization done (n=18): time 1.323e-06/0.3911, allocations: 4 kB / 1.337 GB, free: 6.32 MB / 1.029 GB Notification: Performance of matching and sorting (n=19): time 0.001278/0.3924, allocations: 0.7125 MB / 1.338 GB, free: 5.578 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.87e-05/0.3925, allocations: 59.41 kB / 1.338 GB, free: 5.508 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001989/0.3927, allocations: 194.7 kB / 1.338 GB, free: 5.309 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.582e-05/0.3927, allocations: 33.7 kB / 1.338 GB, free: 5.27 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.3928, allocations: 156.1 kB / 1.338 GB, free: 5.113 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.653e-05/0.3929, allocations: 79.36 kB / 1.338 GB, free: 5.035 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.57e-05/0.393, allocations: 53.66 kB / 1.338 GB, free: 4.977 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001584/0.3931, allocations: 338.8 kB / 1.339 GB, free: 4.637 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001821/0.3933, allocations: 107.9 kB / 1.339 GB, free: 4.531 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002299/0.3935, allocations: 169.9 kB / 1.339 GB, free: 4.344 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004319/0.394, allocations: 300.2 kB / 1.339 GB, free: 4.031 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.394, allocations: 0 / 1.339 GB, free: 4.031 MB / 1.029 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.00079/0.3948, allocations: 412.4 kB / 1.339 GB, free: 3.621 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.3948, allocations: 13.5 kB / 1.339 GB, free: 3.609 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/0.3948, allocations: 3.984 kB / 1.339 GB, free: 3.605 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004393/0.3952, allocations: 100.8 kB / 1.34 GB, free: 3.504 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002538/0.3955, allocations: 52.09 kB / 1.34 GB, free: 3.453 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002108/0.3976, allocations: 1.776 MB / 1.341 GB, free: 1.562 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002177/0.3978, allocations: 19.92 kB / 1.341 GB, free: 1.543 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.679e-05/0.3978, allocations: 15.98 kB / 1.341 GB, free: 1.527 MB / 1.029 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.000165/0.398, allocations: 143.4 kB / 1.342 GB, free: 1.379 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.087e-05/0.398, allocations: 31.86 kB / 1.342 GB, free: 1.348 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005218/0.3986, allocations: 299.2 kB / 1.342 GB, free: 1.047 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.3986, allocations: 0 / 1.342 GB, free: 1.047 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.281e-06/0.3986, allocations: 8.156 kB / 1.342 GB, free: 1.039 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.3986, allocations: 7.938 kB / 1.342 GB, free: 1.031 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009692/0.3996, allocations: 0.6709 MB / 1.343 GB, free: 312 kB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.3996, allocations: 0 / 1.343 GB, free: 312 kB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002966/0.3999, allocations: 59.89 kB / 1.343 GB, free: 252 kB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.3999, allocations: 0 / 1.343 GB, free: 252 kB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.361e-05/0.3999, allocations: 11.94 kB / 1.343 GB, free: 240 kB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.3999, allocations: 0 / 1.343 GB, free: 240 kB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3999, allocations: 0 / 1.343 GB, free: 240 kB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006622/0.4005, allocations: 0.5178 MB / 1.343 GB, free: 15.7 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.4006, allocations: 47.8 kB / 1.343 GB, free: 15.65 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.285e-05/0.4007, allocations: 4 kB / 1.343 GB, free: 15.64 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000176/0.4009, allocations: 11.98 kB / 1.343 GB, free: 15.63 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.23e-05/0.4009, allocations: 11.97 kB / 1.343 GB, free: 15.62 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.493e-05/0.4009, allocations: 15.94 kB / 1.343 GB, free: 15.61 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001401/0.4011, allocations: 144 kB / 1.343 GB, free: 15.46 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.4011, allocations: 0 / 1.343 GB, free: 15.46 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003632/0.4014, allocations: 72.06 kB / 1.343 GB, free: 15.39 MB / 1.045 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.0001618/0.4016, allocations: 115.1 kB / 1.343 GB, free: 15.27 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0007402/0.4023, allocations: 390.4 kB / 1.344 GB, free: 14.87 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.4023, allocations: 384 / 1.344 GB, free: 14.87 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001772/0.4025, allocations: 121.2 kB / 1.344 GB, free: 14.75 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003804/0.4029, allocations: 47.83 kB / 1.344 GB, free: 14.71 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001199/0.4041, allocations: 0.6295 MB / 1.345 GB, free: 14.05 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004632/0.4045, allocations: 0.7675 MB / 1.345 GB, free: 13.25 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.000156/0.4047, allocations: 57.91 kB / 1.345 GB, free: 13.2 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.347e-05/0.4048, allocations: 27.42 kB / 1.345 GB, free: 13.17 MB / 1.045 GB Notification: Performance of SimCode: time 3.3e-07/0.4048, allocations: 4 kB / 1.345 GB, free: 13.17 MB / 1.045 GB Notification: Performance of Templates: time 0.007056/0.4118, allocations: 3.01 MB / 1.348 GB, free: 10.17 MB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.AC.OnePhase.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.173372047021985]