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.0008156/0.0008156, allocations: 76.55 kB / 19.93 MB, free: 4.637 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.000776/0.000776, allocations: 177.9 kB / 23.22 MB, free: 1.352 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 0.9149/0.9149, allocations: 177.1 MB / 203.5 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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 1.742/1.742, allocations: 377.8 MB / 0.6228 GB, free: 8.641 MB / 0.5886 GB " [Timeout remaining time 178] 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.674e-06/1.674e-06, allocations: 0 / 0.9822 GB, free: 2.098 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.5e-05/2.667e-05, allocations: 6.219 kB / 0.9822 GB, free: 2.09 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002348/0.002374, allocations: 1.917 MB / 0.9841 GB, free: 164 kB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001257/0.003631, allocations: 0.7089 MB / 0.9848 GB, free: 15.45 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001209/0.003752, allocations: 3.938 kB / 0.9848 GB, free: 15.44 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.0002349/0.003987, allocations: 87.62 kB / 0.9848 GB, free: 15.36 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 9.815e-05/0.004085, allocations: 91.52 kB / 0.9849 GB, free: 15.27 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005123/0.004598, allocations: 183.6 kB / 0.9851 GB, free: 15.09 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0002403/0.004838, allocations: 267.4 kB / 0.9854 GB, free: 14.82 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000132/0.00497, allocations: 46.16 kB / 0.9854 GB, free: 14.78 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001439/0.005114, allocations: 155.7 kB / 0.9855 GB, free: 14.63 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001609/0.005275, allocations: 139.7 kB / 0.9857 GB, free: 14.49 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 3.044e-05/0.005305, allocations: 20 kB / 0.9857 GB, free: 14.47 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001059/0.005411, allocations: 87.92 kB / 0.9858 GB, free: 14.39 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 6.749e-05/0.005478, allocations: 67.77 kB / 0.9859 GB, free: 14.32 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 6.135e-05/0.00554, allocations: 63.77 kB / 0.9859 GB, free: 14.26 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0003162/0.005856, allocations: 331 kB / 0.9862 GB, free: 13.93 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.00586, allocations: 0 / 0.9862 GB, free: 13.93 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.423e-06/0.005861, allocations: 0 / 0.9862 GB, free: 13.93 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.005866, allocations: 0 / 0.9862 GB, free: 13.93 MB / 0.948 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.0006369/0.006503, allocations: 0.5168 MB / 0.9867 GB, free: 13.38 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.006541, allocations: 8.031 kB / 0.9867 GB, free: 13.38 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.539e-05/0.006606, allocations: 36.75 kB / 0.9868 GB, free: 13.34 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000383/0.006989, allocations: 244.9 kB / 0.987 GB, free: 13.08 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.906e-05/0.007008, allocations: 12.38 kB / 0.987 GB, free: 13.07 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.031e-05/0.007039, allocations: 24.31 kB / 0.987 GB, free: 13.04 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003277/0.007366, allocations: 305.3 kB / 0.9873 GB, free: 12.7 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.007375, allocations: 192 / 0.9873 GB, free: 12.7 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.958e-05/0.007395, allocations: 12.12 kB / 0.9873 GB, free: 12.69 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.007401, allocations: 4 kB / 0.9873 GB, free: 12.69 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000185/0.007586, allocations: 154.1 kB / 0.9875 GB, free: 12.53 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005778/0.008164, allocations: 0.583 MB / 0.9881 GB, free: 11.91 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002319/0.008396, allocations: 180.4 kB / 0.9882 GB, free: 11.72 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001038/0.0085, allocations: 122.5 kB / 0.9884 GB, free: 11.59 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.942e-05/0.008519, allocations: 4 kB / 0.9884 GB, free: 11.59 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002014/0.008721, allocations: 206.6 kB / 0.9886 GB, free: 11.36 MB / 0.948 GB Notification: Performance of pre-optimization done (n=15): time 2.073e-06/0.008723, allocations: 0 / 0.9886 GB, free: 11.36 MB / 0.948 GB Notification: Performance of matching and sorting (n=15): time 0.0004929/0.009216, allocations: 445.5 kB / 0.989 GB, free: 10.9 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.161e-05/0.009277, allocations: 136.5 kB / 0.9891 GB, free: 10.74 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001783/0.009455, allocations: 261.9 kB / 0.9894 GB, free: 10.48 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.009472, allocations: 29.7 kB / 0.9894 GB, free: 10.45 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 9.44e-05/0.009567, allocations: 164.3 kB / 0.9895 GB, free: 10.28 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.805e-05/0.009595, allocations: 39.69 kB / 0.9896 GB, free: 10.24 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.155e-05/0.009646, allocations: 45.66 kB / 0.9896 GB, free: 10.19 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.47e-05/0.009731, allocations: 338.8 kB / 0.9899 GB, free: 9.852 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/0.009841, allocations: 113.7 kB / 0.9901 GB, free: 9.734 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001347/0.009975, allocations: 222.2 kB / 0.9903 GB, free: 9.48 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001944/0.01017, allocations: 238.7 kB / 0.9905 GB, free: 9.223 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.01017, allocations: 0 / 0.9905 GB, free: 9.223 MB / 0.948 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003202/0.01049, allocations: 388.7 kB / 0.9909 GB, free: 8.824 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 3.335e-05/0.01053, allocations: 37.69 kB / 0.9909 GB, free: 8.781 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.01053, allocations: 4 kB / 0.9909 GB, free: 8.777 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.301e-05/0.01054, allocations: 0 / 0.9909 GB, free: 8.777 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.288e-05/0.01063, allocations: 23.98 kB / 0.9909 GB, free: 8.754 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.01063, allocations: 4 kB / 0.9909 GB, free: 8.75 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.558e-05/0.0107, allocations: 19.88 kB / 0.991 GB, free: 8.73 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.077e-05/0.01071, allocations: 8 kB / 0.991 GB, free: 8.723 MB / 0.948 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.0001366/0.01085, allocations: 202 kB / 0.9912 GB, free: 8.512 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.321e-05/0.01087, allocations: 27.8 kB / 0.9912 GB, free: 8.484 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.768e-05/0.01091, allocations: 25.77 kB / 0.9912 GB, free: 8.449 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.01091, allocations: 0 / 0.9912 GB, free: 8.449 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.01092, allocations: 4 kB / 0.9912 GB, free: 8.445 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.01092, allocations: 0 / 0.9912 GB, free: 8.445 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001431/0.01106, allocations: 193.3 kB / 0.9914 GB, free: 8.227 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.01106, allocations: 7.938 kB / 0.9914 GB, free: 8.219 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.307e-05/0.01113, allocations: 16 kB / 0.9914 GB, free: 8.203 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.01113, allocations: 7.922 kB / 0.9914 GB, free: 8.195 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.449e-05/0.01115, allocations: 12 kB / 0.9914 GB, free: 8.184 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.01115, allocations: 0 / 0.9914 GB, free: 8.184 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.01115, allocations: 0 / 0.9914 GB, free: 8.184 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006012/0.01175, allocations: 0.5174 MB / 0.9919 GB, free: 7.629 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 2.169e-05/0.01177, allocations: 31.77 kB / 0.992 GB, free: 7.598 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.553e-05/0.0118, allocations: 8 kB / 0.992 GB, free: 7.59 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.986e-05/0.01185, allocations: 15.98 kB / 0.992 GB, free: 7.574 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.087e-05/0.01191, allocations: 27.89 kB / 0.992 GB, free: 7.547 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.698e-05/0.01192, allocations: 12.05 kB / 0.992 GB, free: 7.535 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0001075/0.01203, allocations: 193.2 kB / 0.9922 GB, free: 7.348 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.01203, allocations: 0 / 0.9922 GB, free: 7.348 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.000191/0.01222, allocations: 63.83 kB / 0.9923 GB, free: 7.285 MB / 0.948 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.0001659/0.01239, allocations: 136.9 kB / 0.9924 GB, free: 7.145 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0003136/0.0127, allocations: 322.6 kB / 0.9927 GB, free: 6.805 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.0127, allocations: 4.188 kB / 0.9927 GB, free: 6.801 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001281/0.01283, allocations: 193 kB / 0.9929 GB, free: 6.594 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000212/0.01304, allocations: 36.88 kB / 0.9929 GB, free: 6.562 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000593/0.01364, allocations: 0.4944 MB / 0.9934 GB, free: 6.031 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.764e-05/0.01373, allocations: 144.7 kB / 0.9936 GB, free: 5.867 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.925e-05/0.01376, allocations: 24.48 kB / 0.9936 GB, free: 5.844 MB / 0.948 GB Notification: Performance of SimCode: time 5.51e-07/0.01377, allocations: 0 / 0.9936 GB, free: 5.844 MB / 0.948 GB Notification: Performance of Templates: time 0.003549/0.01731, allocations: 3.038 MB / 0.9965 GB, free: 2.812 MB / 0.948 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=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: 7.071511456742883]