Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001571/0.001571, allocations: 84.72 kB / 19.44 MB, free: 356 kB / 13.93 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.00183/0.00183, allocations: 157.7 kB / 22.76 MB, free: 1.68 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.553/1.553, allocations: 177.1 MB / 203.1 MB, free: 5.59 MB / 186.7 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.254/3.254, allocations: 429.6 MB / 0.673 GB, free: 3.883 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/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.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_latest_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_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 0.8776 GB, free: 6.48 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.928e-05/3.106e-05, allocations: 2.312 kB / 0.8776 GB, free: 6.477 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00437/0.004401, allocations: 1.937 MB / 0.8795 GB, free: 4.551 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001802/0.006204, allocations: 0.7072 MB / 0.8802 GB, free: 3.84 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002448/0.006448, allocations: 1.031 kB / 0.8802 GB, free: 3.84 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.000312/0.00676, allocations: 80.8 kB / 0.8802 GB, free: 3.762 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0002321/0.006993, allocations: 97.47 kB / 0.8803 GB, free: 3.668 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007639/0.007756, allocations: 186.1 kB / 0.8805 GB, free: 3.488 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0004957/0.008252, allocations: 263.4 kB / 0.8808 GB, free: 3.23 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001842/0.008436, allocations: 45.55 kB / 0.8808 GB, free: 3.184 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003315/0.008768, allocations: 159.7 kB / 0.881 GB, free: 3.027 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002859/0.009054, allocations: 139.7 kB / 0.8811 GB, free: 2.891 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 5.161e-05/0.009105, allocations: 20.72 kB / 0.8811 GB, free: 2.871 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002/0.009305, allocations: 87.92 kB / 0.8812 GB, free: 2.785 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 0.0001118/0.009417, allocations: 61.48 kB / 0.8813 GB, free: 2.727 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.0001116/0.009529, allocations: 63.78 kB / 0.8813 GB, free: 2.664 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0005941/0.01012, allocations: 323 kB / 0.8816 GB, free: 2.348 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.01013, allocations: 3.938 kB / 0.8816 GB, free: 2.344 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.132e-06/0.01013, allocations: 4.5 kB / 0.8816 GB, free: 2.34 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.061e-05/0.01014, allocations: 0 / 0.8816 GB, free: 2.34 MB / 0.8386 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.001178/0.01132, allocations: 0.5171 MB / 0.8821 GB, free: 1.789 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.01137, allocations: 8.031 kB / 0.8821 GB, free: 1.781 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001374/0.01151, allocations: 40.75 kB / 0.8822 GB, free: 1.742 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006381/0.01214, allocations: 250.5 kB / 0.8824 GB, free: 1.477 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.199e-05/0.01219, allocations: 16.38 kB / 0.8824 GB, free: 1.461 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.794e-05/0.01223, allocations: 16.38 kB / 0.8825 GB, free: 1.445 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006811/0.01292, allocations: 300.9 kB / 0.8827 GB, free: 1.109 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.01293, allocations: 8.156 kB / 0.8827 GB, free: 1.102 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.873e-05/0.01296, allocations: 8.125 kB / 0.8828 GB, free: 1.094 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.01297, allocations: 4 kB / 0.8828 GB, free: 1.09 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003481/0.01332, allocations: 162 kB / 0.8829 GB, free: 0.9258 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001031/0.01435, allocations: 0.5753 MB / 0.8835 GB, free: 320 kB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004498/0.0148, allocations: 180.4 kB / 0.8836 GB, free: 124 kB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002405/0.01504, allocations: 122.6 kB / 0.8838 GB, free: 15.99 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.858e-05/0.01507, allocations: 0 / 0.8838 GB, free: 15.99 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003776/0.01545, allocations: 210.6 kB / 0.884 GB, free: 15.76 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=15): time 1.213e-06/0.01545, allocations: 0 / 0.884 GB, free: 15.76 MB / 0.8542 GB Notification: Performance of matching and sorting (n=15): time 0.000927/0.01638, allocations: 442.5 kB / 0.8844 GB, free: 15.3 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001272/0.0165, allocations: 144.4 kB / 0.8845 GB, free: 15.13 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003594/0.01686, allocations: 261.9 kB / 0.8848 GB, free: 14.86 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.599e-05/0.0169, allocations: 37.64 kB / 0.8848 GB, free: 14.82 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001736/0.01707, allocations: 168.2 kB / 0.885 GB, free: 14.66 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 5.746e-05/0.01713, allocations: 35.69 kB / 0.885 GB, free: 14.62 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000104/0.01723, allocations: 41.7 kB / 0.885 GB, free: 14.57 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0002238/0.01746, allocations: 334.8 kB / 0.8854 GB, free: 14.24 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002286/0.01768, allocations: 121.7 kB / 0.8855 GB, free: 14.11 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003175/0.018, allocations: 214.2 kB / 0.8857 GB, free: 13.87 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004189/0.01842, allocations: 241 kB / 0.8859 GB, free: 13.61 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.01842, allocations: 4 kB / 0.8859 GB, free: 13.61 MB / 0.8542 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006815/0.01911, allocations: 395.1 kB / 0.8863 GB, free: 13.2 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 5.362e-05/0.01916, allocations: 37.69 kB / 0.8863 GB, free: 13.16 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.01917, allocations: 0 / 0.8863 GB, free: 13.16 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.685e-05/0.01919, allocations: 7.938 kB / 0.8863 GB, free: 13.15 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001356/0.01933, allocations: 23.98 kB / 0.8864 GB, free: 13.13 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.363e-06/0.01934, allocations: 0 / 0.8864 GB, free: 13.13 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001404/0.01948, allocations: 27.88 kB / 0.8864 GB, free: 13.1 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.167e-05/0.0195, allocations: 4 kB / 0.8864 GB, free: 13.1 MB / 0.8542 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.0002359/0.01973, allocations: 202.5 kB / 0.8866 GB, free: 12.89 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.468e-05/0.0198, allocations: 31.8 kB / 0.8866 GB, free: 12.86 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.41e-05/0.01986, allocations: 29.77 kB / 0.8866 GB, free: 12.83 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.01987, allocations: 0 / 0.8866 GB, free: 12.83 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.01987, allocations: 0 / 0.8866 GB, free: 12.83 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.01987, allocations: 0 / 0.8866 GB, free: 12.83 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003033/0.02018, allocations: 209.2 kB / 0.8868 GB, free: 12.59 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.02018, allocations: 0 / 0.8868 GB, free: 12.59 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001114/0.02029, allocations: 12 kB / 0.8869 GB, free: 12.58 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/0.0203, allocations: 3.938 kB / 0.8869 GB, free: 12.58 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.448e-05/0.02032, allocations: 7.984 kB / 0.8869 GB, free: 12.57 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.02032, allocations: 4 kB / 0.8869 GB, free: 12.57 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.02032, allocations: 0 / 0.8869 GB, free: 12.57 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009518/0.02128, allocations: 0.5291 MB / 0.8874 GB, free: 12 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 4.291e-05/0.02132, allocations: 23.83 kB / 0.8874 GB, free: 11.98 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.774e-05/0.02137, allocations: 11.98 kB / 0.8874 GB, free: 11.96 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.02148, allocations: 11.98 kB / 0.8874 GB, free: 11.95 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.986e-05/0.02158, allocations: 23.95 kB / 0.8875 GB, free: 11.93 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.693e-05/0.0216, allocations: 8 kB / 0.8875 GB, free: 11.92 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0002282/0.02183, allocations: 197.3 kB / 0.8876 GB, free: 11.73 MB / 0.8542 GB Notification: Performance of sort global known variables: time 8e-08/0.02183, allocations: 0 / 0.8876 GB, free: 11.73 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003199/0.02215, allocations: 63.83 kB / 0.8877 GB, free: 11.67 MB / 0.8542 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.0002507/0.0224, allocations: 131.1 kB / 0.8878 GB, free: 11.54 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0005963/0.023, allocations: 322.6 kB / 0.8881 GB, free: 11.2 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.023, allocations: 192 / 0.8881 GB, free: 11.2 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0002996/0.0233, allocations: 193 kB / 0.8883 GB, free: 10.99 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003368/0.02364, allocations: 41.03 kB / 0.8884 GB, free: 10.95 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001029/0.02467, allocations: 494 kB / 0.8888 GB, free: 10.44 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001883/0.02486, allocations: 140.7 kB / 0.889 GB, free: 10.28 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 9.55e-05/0.02495, allocations: 21.47 kB / 0.889 GB, free: 10.26 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.678e-05/0.02502, allocations: 24.48 kB / 0.889 GB, free: 10.23 MB / 0.8542 GB Notification: Performance of SimCode: time 7.92e-07/0.02502, allocations: 0 / 0.889 GB, free: 10.23 MB / 0.8542 GB Notification: Performance of Templates: time 0.00836/0.03338, allocations: 2.896 MB / 0.8918 GB, free: 7.387 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.992708374047652]