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.001898/0.001898, allocations: 87.69 kB / 20.24 MB, free: 4.18 MB / 18.57 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.001979/0.001979, allocations: 157.3 kB / 23.54 MB, free: 0.875 MB / 18.57 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.603/1.603, allocations: 177.1 MB / 203.9 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 3.171/3.171, allocations: 377.8 MB / 0.6232 GB, free: 8.508 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 1.984e-06/1.984e-06, allocations: 0 / 0.8108 GB, free: 2.09 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.52e-05/3.718e-05, allocations: 2.312 kB / 0.8108 GB, free: 2.086 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004387/0.004424, allocations: 1.968 MB / 0.8127 GB, free: 132 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001685/0.006109, allocations: 0.7152 MB / 0.8134 GB, free: 15.41 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001156/0.006224, allocations: 4 kB / 0.8134 GB, free: 15.41 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0002915/0.006516, allocations: 84.42 kB / 0.8135 GB, free: 15.32 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0001609/0.006677, allocations: 93.19 kB / 0.8136 GB, free: 15.23 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006399/0.007317, allocations: 185.1 kB / 0.8138 GB, free: 15.05 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0004274/0.007744, allocations: 265.1 kB / 0.814 GB, free: 14.8 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001996/0.007944, allocations: 42.17 kB / 0.8141 GB, free: 14.75 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000296/0.00824, allocations: 159.7 kB / 0.8142 GB, free: 14.6 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002839/0.008524, allocations: 140.7 kB / 0.8143 GB, free: 14.46 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 5.114e-05/0.008575, allocations: 20 kB / 0.8144 GB, free: 14.44 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001899/0.008765, allocations: 87.94 kB / 0.8144 GB, free: 14.36 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 0.0001032/0.008868, allocations: 57.3 kB / 0.8145 GB, free: 14.3 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0001171/0.008985, allocations: 67.77 kB / 0.8146 GB, free: 14.23 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0005907/0.009576, allocations: 330.9 kB / 0.8149 GB, free: 13.91 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.00958, allocations: 0 / 0.8149 GB, free: 13.91 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.482e-06/0.009582, allocations: 2.594 kB / 0.8149 GB, free: 13.91 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 8.887e-06/0.009591, allocations: 0 / 0.8149 GB, free: 13.91 MB / 0.7761 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.001143/0.01073, allocations: 0.6254 MB / 0.8155 GB, free: 13.24 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.01078, allocations: 12.03 kB / 0.8155 GB, free: 13.23 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001127/0.01089, allocations: 41.28 kB / 0.8155 GB, free: 13.19 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004838/0.01138, allocations: 237 kB / 0.8158 GB, free: 12.94 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.268e-05/0.01141, allocations: 14.03 kB / 0.8158 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.516e-05/0.01146, allocations: 24.31 kB / 0.8158 GB, free: 12.9 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004848/0.01194, allocations: 291.6 kB / 0.8161 GB, free: 12.57 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.01195, allocations: 192 / 0.8161 GB, free: 12.57 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.797e-05/0.01198, allocations: 12.72 kB / 0.8161 GB, free: 12.56 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.007e-06/0.01199, allocations: 4 kB / 0.8161 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002824/0.01227, allocations: 126.8 kB / 0.8162 GB, free: 12.43 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00116/0.01343, allocations: 0.7767 MB / 0.817 GB, free: 11.61 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003849/0.01382, allocations: 158.2 kB / 0.8171 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001702/0.01399, allocations: 85.5 kB / 0.8172 GB, free: 11.34 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 3.568e-05/0.01402, allocations: 4.5 kB / 0.8172 GB, free: 11.34 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003321/0.01436, allocations: 185.4 kB / 0.8174 GB, free: 11.13 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=15): time 1.463e-06/0.01436, allocations: 4 kB / 0.8174 GB, free: 11.12 MB / 0.7761 GB Notification: Performance of matching and sorting (n=15): time 0.000742/0.0151, allocations: 319.3 kB / 0.8177 GB, free: 10.79 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001359/0.01523, allocations: 136.5 kB / 0.8178 GB, free: 10.62 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004214/0.01566, allocations: 357 kB / 0.8182 GB, free: 10.26 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 3.882e-05/0.01569, allocations: 33.7 kB / 0.8182 GB, free: 10.22 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003412/0.01604, allocations: 217.4 kB / 0.8184 GB, free: 10 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 6.211e-05/0.0161, allocations: 51.62 kB / 0.8185 GB, free: 9.953 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/0.0162, allocations: 55.36 kB / 0.8185 GB, free: 9.891 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0003453/0.01655, allocations: 0.5235 MB / 0.819 GB, free: 9.355 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001713/0.01672, allocations: 81.69 kB / 0.8191 GB, free: 9.27 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002977/0.01702, allocations: 212 kB / 0.8193 GB, free: 9.023 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003387/0.01736, allocations: 200.1 kB / 0.8195 GB, free: 8.801 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.01736, allocations: 0 / 0.8195 GB, free: 8.801 MB / 0.7761 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005323/0.01789, allocations: 294.3 kB / 0.8198 GB, free: 8.496 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 6.363e-05/0.01795, allocations: 37.7 kB / 0.8198 GB, free: 8.453 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.01796, allocations: 4 kB / 0.8198 GB, free: 8.449 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.01798, allocations: 0.5 kB / 0.8198 GB, free: 8.449 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/0.01811, allocations: 25.27 kB / 0.8198 GB, free: 8.426 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.391e-05/0.01812, allocations: 4 kB / 0.8198 GB, free: 8.422 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001087/0.01823, allocations: 19.88 kB / 0.8199 GB, free: 8.402 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.035e-05/0.01825, allocations: 8 kB / 0.8199 GB, free: 8.395 MB / 0.7761 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.0002208/0.01847, allocations: 219.8 kB / 0.8201 GB, free: 8.164 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.8e-05/0.01853, allocations: 31.8 kB / 0.8201 GB, free: 8.133 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.266e-05/0.0186, allocations: 33.45 kB / 0.8201 GB, free: 8.105 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.0186, allocations: 0 / 0.8201 GB, free: 8.105 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.932e-06/0.0186, allocations: 0 / 0.8201 GB, free: 8.105 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.01861, allocations: 0 / 0.8201 GB, free: 8.105 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003451/0.01895, allocations: 260.4 kB / 0.8204 GB, free: 7.816 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.01895, allocations: 0 / 0.8204 GB, free: 7.816 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.936e-05/0.01905, allocations: 12 kB / 0.8204 GB, free: 7.805 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.01906, allocations: 3.938 kB / 0.8204 GB, free: 7.801 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.623e-05/0.01908, allocations: 11.98 kB / 0.8204 GB, free: 7.789 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.01909, allocations: 3.938 kB / 0.8204 GB, free: 7.785 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.01909, allocations: 1.688 kB / 0.8204 GB, free: 7.785 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007547/0.01984, allocations: 411.4 kB / 0.8208 GB, free: 7.344 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 4.232e-05/0.01988, allocations: 23.73 kB / 0.8208 GB, free: 7.32 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.419e-05/0.01993, allocations: 8.969 kB / 0.8208 GB, free: 7.312 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.241e-05/0.02002, allocations: 11.98 kB / 0.8209 GB, free: 7.301 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.942e-05/0.02012, allocations: 29.05 kB / 0.8209 GB, free: 7.273 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-05/0.02014, allocations: 7.984 kB / 0.8209 GB, free: 7.266 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0002208/0.02037, allocations: 221.1 kB / 0.8211 GB, free: 7.055 MB / 0.7761 GB Notification: Performance of sort global known variables: time 8e-08/0.02037, allocations: 1.125 kB / 0.8211 GB, free: 7.055 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002994/0.02066, allocations: 59.89 kB / 0.8212 GB, free: 6.996 MB / 0.7761 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.000258/0.02092, allocations: 136.2 kB / 0.8213 GB, free: 6.855 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0005309/0.02145, allocations: 291.4 kB / 0.8216 GB, free: 6.547 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.02146, allocations: 0 / 0.8216 GB, free: 6.547 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0002455/0.0217, allocations: 176.7 kB / 0.8217 GB, free: 6.352 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003157/0.02202, allocations: 43.11 kB / 0.8218 GB, free: 6.312 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009078/0.02292, allocations: 445.1 kB / 0.8222 GB, free: 5.848 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001744/0.0231, allocations: 134.9 kB / 0.8223 GB, free: 5.699 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 8.56e-05/0.02318, allocations: 23.7 kB / 0.8224 GB, free: 5.676 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.089e-05/0.02325, allocations: 20.5 kB / 0.8224 GB, free: 5.656 MB / 0.7761 GB Notification: Performance of SimCode: time 1.423e-06/0.02325, allocations: 0 / 0.8224 GB, free: 5.656 MB / 0.7761 GB Notification: Performance of Templates: time 0.008122/0.03137, allocations: 2.895 MB / 0.8252 GB, free: 2.812 MB / 0.7761 GB " [Timeout remaining time 300] 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=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 240] 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: 8.822864105924964]