Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.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.001537/0.001537, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001717/0.001717, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.649/1.649, allocations: 230.6 MB / 256 MB, free: 7.984 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.586/3.586, allocations: 0.4899 GB / 0.795 GB, free: 33.29 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.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|mot.y|mot.uppHys.y|mot.delta|ySet.y|mot.lowHys.u|mot.lowHys.y|mot.uppHys.u",fileNamePrefix="Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|mot.y|mot.uppHys.y|mot.delta|ySet.y|mot.lowHys.u|mot.lowHys.y|mot.uppHys.u",fileNamePrefix="Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") [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.002186/0.002186, allocations: 71.69 kB / 1.154 GB, free: 25.4 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4726/0.4747, allocations: 176.1 MB / 1.326 GB, free: 1.426 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003631/0.4784, allocations: 2.011 MB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001434/0.4798, allocations: 0.7441 MB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001128/0.4799, allocations: 3.938 kB / 1.329 GB, free: 14.65 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0002691/0.4802, allocations: 87.64 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001514/0.4803, allocations: 95.5 kB / 1.329 GB, free: 14.47 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006392/0.481, allocations: 190.9 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003395/0.4813, allocations: 251.5 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001688/0.4815, allocations: 54.16 kB / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001681/0.4817, allocations: 119.6 kB / 1.33 GB, free: 13.87 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002521/0.4819, allocations: 163.5 kB / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.902e-05/0.482, allocations: 20 kB / 1.33 GB, free: 13.69 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001741/0.4821, allocations: 95.86 kB / 1.33 GB, free: 13.6 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 9.511e-05/0.4822, allocations: 63.78 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001268/0.4823, allocations: 107.3 kB / 1.33 GB, free: 13.43 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004503/0.4828, allocations: 306.8 kB / 1.331 GB, free: 13.13 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.4828, allocations: 0 / 1.331 GB, free: 13.13 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.583e-06/0.4828, allocations: 0 / 1.331 GB, free: 13.13 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.313e-06/0.4828, allocations: 0 / 1.331 GB, free: 13.13 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0009187/0.4837, allocations: 0.518 MB / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.4838, allocations: 8.031 kB / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.215e-05/0.4838, allocations: 32.75 kB / 1.331 GB, free: 12.54 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005343/0.4844, allocations: 245.2 kB / 1.331 GB, free: 12.27 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.822e-05/0.4844, allocations: 12.38 kB / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.824e-05/0.4844, allocations: 12.38 kB / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004476/0.4849, allocations: 231.2 kB / 1.332 GB, free: 12 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.4849, allocations: 4 kB / 1.332 GB, free: 11.99 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.054e-05/0.4849, allocations: 4 kB / 1.332 GB, free: 11.99 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.173e-05/0.4849, allocations: 4 kB / 1.332 GB, free: 11.98 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002677/0.4852, allocations: 133.3 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009367/0.4861, allocations: 0.641 MB / 1.332 GB, free: 11.16 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003747/0.4865, allocations: 166.5 kB / 1.332 GB, free: 10.99 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001702/0.4867, allocations: 88.83 kB / 1.333 GB, free: 10.9 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.766e-05/0.4867, allocations: 0 / 1.333 GB, free: 10.9 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003104/0.487, allocations: 169 kB / 1.333 GB, free: 10.72 MB / 1.029 GB Notification: Performance of pre-optimization done (n=15): time 1.413e-06/0.487, allocations: 4 kB / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of matching and sorting (n=15): time 0.000738/0.4877, allocations: 383 kB / 1.333 GB, free: 10.33 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.492e-05/0.4878, allocations: 132.5 kB / 1.333 GB, free: 10.17 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003055/0.4881, allocations: 277.9 kB / 1.333 GB, free: 9.887 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.907e-05/0.4882, allocations: 29.7 kB / 1.333 GB, free: 9.852 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001362/0.4883, allocations: 160.3 kB / 1.334 GB, free: 9.688 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.068e-05/0.4884, allocations: 43.64 kB / 1.334 GB, free: 9.645 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.968e-05/0.4885, allocations: 37.72 kB / 1.334 GB, free: 9.602 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001768/0.4886, allocations: 342.8 kB / 1.334 GB, free: 9.258 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001732/0.4888, allocations: 83.89 kB / 1.334 GB, free: 9.176 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002033/0.489, allocations: 134.8 kB / 1.334 GB, free: 9.027 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003577/0.4894, allocations: 241.5 kB / 1.334 GB, free: 8.77 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.4894, allocations: 0 / 1.334 GB, free: 8.77 MB / 1.029 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005448/0.4899, allocations: 339.2 kB / 1.335 GB, free: 8.426 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.756e-05/0.49, allocations: 41.62 kB / 1.335 GB, free: 8.379 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.49, allocations: 4.094 kB / 1.335 GB, free: 8.375 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.49, allocations: 4 kB / 1.335 GB, free: 8.371 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001344/0.4901, allocations: 27.92 kB / 1.335 GB, free: 8.344 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.4901, allocations: 0 / 1.335 GB, free: 8.344 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001252/0.4903, allocations: 31.83 kB / 1.335 GB, free: 8.312 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.713e-05/0.4903, allocations: 4 kB / 1.335 GB, free: 8.309 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 (ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,$whenCondition1,mot.int.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * 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.0002034/0.4905, allocations: 199.9 kB / 1.335 GB, free: 8.098 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.154e-05/0.4905, allocations: 27.86 kB / 1.335 GB, free: 8.07 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.501e-05/0.4906, allocations: 29.77 kB / 1.335 GB, free: 8.039 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.4906, allocations: 4 kB / 1.335 GB, free: 8.035 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.4906, allocations: 0 / 1.335 GB, free: 8.035 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.4906, allocations: 0 / 1.335 GB, free: 8.035 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002933/0.4909, allocations: 260.5 kB / 1.335 GB, free: 7.738 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.4909, allocations: 0 / 1.335 GB, free: 7.738 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001077/0.491, allocations: 15.98 kB / 1.335 GB, free: 7.723 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.508e-06/0.491, allocations: 4 kB / 1.335 GB, free: 7.719 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.963e-05/0.491, allocations: 4 kB / 1.335 GB, free: 7.715 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.491, allocations: 3.938 kB / 1.335 GB, free: 7.711 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.491, allocations: 8 kB / 1.335 GB, free: 7.703 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007872/0.4918, allocations: 468.2 kB / 1.336 GB, free: 7.223 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.468e-05/0.4919, allocations: 23.89 kB / 1.336 GB, free: 7.199 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.216e-05/0.4919, allocations: 4 kB / 1.336 GB, free: 7.195 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.492, allocations: 15.98 kB / 1.336 GB, free: 7.18 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.397e-05/0.4921, allocations: 32.02 kB / 1.336 GB, free: 7.148 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.567e-05/0.4921, allocations: 7.984 kB / 1.336 GB, free: 7.141 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0002283/0.4923, allocations: 205.1 kB / 1.336 GB, free: 6.941 MB / 1.029 GB Notification: Performance of sort global known variables: time 8.1e-08/0.4923, allocations: 0 / 1.336 GB, free: 6.941 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003014/0.4926, allocations: 59.89 kB / 1.336 GB, free: 6.883 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,mot.uppHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled) * Number of discrete states: 8 (mot.lowHys.y,mot.uppHys.y,ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * 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.0002167/0.4929, allocations: 138.5 kB / 1.336 GB, free: 6.742 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005031/0.4934, allocations: 259.2 kB / 1.337 GB, free: 6.477 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.4934, allocations: 0 / 1.337 GB, free: 6.477 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002314/0.4936, allocations: 163.2 kB / 1.337 GB, free: 6.305 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003138/0.4939, allocations: 42.19 kB / 1.337 GB, free: 6.266 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008531/0.4948, allocations: 448.5 kB / 1.337 GB, free: 5.797 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004128/0.4952, allocations: 0.7553 MB / 1.338 GB, free: 5.016 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.213e-05/0.4953, allocations: 17.48 kB / 1.338 GB, free: 5 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.912e-05/0.4953, allocations: 19.42 kB / 1.338 GB, free: 4.984 MB / 1.029 GB Notification: Performance of SimCode: time 3.51e-07/0.4953, allocations: 0 / 1.338 GB, free: 4.984 MB / 1.029 GB Notification: Performance of Templates: time 0.007425/0.5027, allocations: 2.907 MB / 1.341 GB, free: 2.094 MB / 1.029 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.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: 10.329213100019842]