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.001468/0.001468, allocations: 93.06 kB / 19.65 MB, free: 280 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.001807/0.001807, allocations: 173.3 kB / 23.02 MB, free: 1.551 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.9563/0.9563, allocations: 177.2 MB / 203.4 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] 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 2.077/2.077, allocations: 429.5 MB / 0.6732 GB, free: 4.031 MB / 0.6355 GB " [Timeout remaining time 177] 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 2.304e-06/2.304e-06, allocations: 0 / 0.8782 GB, free: 5.219 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.186e-05/2.416e-05, allocations: 2.312 kB / 0.8782 GB, free: 5.215 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002562/0.002586, allocations: 1.993 MB / 0.8801 GB, free: 3.238 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.001132/0.003719, allocations: 0.7251 MB / 0.8808 GB, free: 2.512 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00013/0.003848, allocations: 4 kB / 0.8808 GB, free: 2.508 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 0.0002793/0.004128, allocations: 80.52 kB / 0.8809 GB, free: 2.43 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 0.000118/0.004246, allocations: 105.8 kB / 0.881 GB, free: 2.328 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005414/0.004787, allocations: 180.8 kB / 0.8812 GB, free: 2.152 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.0003015/0.005089, allocations: 259.4 kB / 0.8814 GB, free: 1.898 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001517/0.00524, allocations: 51.25 kB / 0.8815 GB, free: 1.844 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001868/0.005427, allocations: 159.6 kB / 0.8816 GB, free: 1.688 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001876/0.005615, allocations: 136.3 kB / 0.8818 GB, free: 1.555 MB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 3.656e-05/0.005651, allocations: 16.72 kB / 0.8818 GB, free: 1.539 MB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001263/0.005778, allocations: 83.94 kB / 0.8819 GB, free: 1.457 MB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 8.065e-05/0.005858, allocations: 63.55 kB / 0.8819 GB, free: 1.398 MB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 7.179e-05/0.00593, allocations: 59.78 kB / 0.882 GB, free: 1.34 MB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 0.0003061/0.006236, allocations: 227.2 kB / 0.8822 GB, free: 1.117 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.006239, allocations: 0 / 0.8822 GB, free: 1.117 MB / 0.7917 GB Notification: Performance of FrontEnd: time 1.052e-06/0.00624, allocations: 0 / 0.8822 GB, free: 1.117 MB / 0.7917 GB Notification: Performance of Transformations before backend: time 5.611e-06/0.006245, allocations: 0 / 0.8822 GB, free: 1.117 MB / 0.7917 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.000797/0.007042, allocations: 0.5985 MB / 0.8828 GB, free: 488 kB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.007084, allocations: 8.031 kB / 0.8828 GB, free: 480 kB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.19e-05/0.007155, allocations: 40.75 kB / 0.8828 GB, free: 440 kB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002675/0.007423, allocations: 237 kB / 0.883 GB, free: 176 kB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.582e-05/0.007449, allocations: 8.375 kB / 0.883 GB, free: 168 kB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.297e-05/0.007482, allocations: 17.41 kB / 0.8831 GB, free: 152 kB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003487/0.007831, allocations: 276.2 kB / 0.8833 GB, free: 15.83 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.007842, allocations: 1.781 kB / 0.8833 GB, free: 15.83 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.659e-05/0.007858, allocations: 4.375 kB / 0.8833 GB, free: 15.82 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.007869, allocations: 7.938 kB / 0.8833 GB, free: 15.82 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000119/0.007988, allocations: 94.75 kB / 0.8834 GB, free: 15.72 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006883/0.008677, allocations: 0.7192 MB / 0.8841 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001771/0.008854, allocations: 112.8 kB / 0.8842 GB, free: 14.83 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.065e-05/0.008924, allocations: 65.38 kB / 0.8843 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.792e-05/0.008942, allocations: 1.812 kB / 0.8843 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001685/0.009111, allocations: 156.4 kB / 0.8845 GB, free: 14.57 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=15): time 2.825e-06/0.009114, allocations: 0 / 0.8845 GB, free: 14.57 MB / 0.8073 GB Notification: Performance of matching and sorting (n=15): time 0.0003673/0.009481, allocations: 274.2 kB / 0.8847 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.631e-05/0.009537, allocations: 137.2 kB / 0.8848 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001989/0.009736, allocations: 308.3 kB / 0.8851 GB, free: 13.81 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.864e-05/0.009755, allocations: 27.36 kB / 0.8852 GB, free: 13.78 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.009864, allocations: 207.1 kB / 0.8854 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.317e-05/0.009897, allocations: 51.62 kB / 0.8854 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.13e-05/0.009958, allocations: 47.36 kB / 0.8855 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.0101, allocations: 0.5079 MB / 0.886 GB, free: 12.95 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.822e-05/0.01017, allocations: 58.34 kB / 0.886 GB, free: 12.88 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001021/0.01027, allocations: 176 kB / 0.8862 GB, free: 12.67 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001298/0.0104, allocations: 158.2 kB / 0.8863 GB, free: 12.48 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.0104, allocations: 0 / 0.8863 GB, free: 12.48 MB / 0.8073 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002394/0.01064, allocations: 250.8 kB / 0.8866 GB, free: 12.22 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 3.528e-05/0.01068, allocations: 41.69 kB / 0.8866 GB, free: 12.18 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.01068, allocations: 3.984 kB / 0.8866 GB, free: 12.17 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.0107, allocations: 0 / 0.8866 GB, free: 12.17 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.845e-05/0.0108, allocations: 23.98 kB / 0.8866 GB, free: 12.15 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.0108, allocations: 4.031 kB / 0.8866 GB, free: 12.14 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.865e-05/0.01086, allocations: 23.88 kB / 0.8867 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.173e-05/0.01088, allocations: 19.94 kB / 0.8867 GB, free: 12.1 MB / 0.8073 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.0001147/0.011, allocations: 202.3 kB / 0.8869 GB, free: 11.89 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.184e-05/0.01103, allocations: 31.8 kB / 0.8869 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.351e-05/0.01106, allocations: 21.78 kB / 0.8869 GB, free: 11.83 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.01107, allocations: 3.984 kB / 0.8869 GB, free: 11.83 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.01107, allocations: 0 / 0.8869 GB, free: 11.83 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.01108, allocations: 0 / 0.8869 GB, free: 11.83 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001588/0.01123, allocations: 224.4 kB / 0.8871 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.01124, allocations: 3.938 kB / 0.8871 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.883e-05/0.01129, allocations: 11.98 kB / 0.8872 GB, free: 11.56 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.279e-06/0.0113, allocations: 7.938 kB / 0.8872 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.562e-05/0.01132, allocations: 4 kB / 0.8872 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.01132, allocations: 4 kB / 0.8872 GB, free: 11.54 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.01132, allocations: 0 / 0.8872 GB, free: 11.54 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000335/0.01166, allocations: 333.3 kB / 0.8875 GB, free: 11.18 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.16e-05/0.01168, allocations: 23.8 kB / 0.8875 GB, free: 11.15 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.846e-05/0.01171, allocations: 11.94 kB / 0.8875 GB, free: 11.14 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.167e-05/0.01175, allocations: 12.03 kB / 0.8875 GB, free: 11.13 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.462e-05/0.01183, allocations: 31.94 kB / 0.8876 GB, free: 11.1 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.611e-05/0.01185, allocations: 4 kB / 0.8876 GB, free: 11.09 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 0.0001071/0.01195, allocations: 205.1 kB / 0.8878 GB, free: 10.89 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4e-08/0.01195, allocations: 0 / 0.8878 GB, free: 10.89 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001861/0.01214, allocations: 55.89 kB / 0.8878 GB, free: 10.84 MB / 0.8073 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.0001577/0.0123, allocations: 133.4 kB / 0.8879 GB, free: 10.7 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002502/0.01255, allocations: 234.4 kB / 0.8882 GB, free: 10.44 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.01255, allocations: 0 / 0.8882 GB, free: 10.44 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.000104/0.01265, allocations: 144.7 kB / 0.8883 GB, free: 10.28 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002207/0.01288, allocations: 43.28 kB / 0.8884 GB, free: 10.24 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005294/0.0134, allocations: 415.6 kB / 0.8887 GB, free: 9.797 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.331e-05/0.01346, allocations: 91.75 kB / 0.8888 GB, free: 9.688 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 5.052e-05/0.01351, allocations: 13.48 kB / 0.8888 GB, free: 9.672 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.045e-05/0.01355, allocations: 20.5 kB / 0.8889 GB, free: 9.652 MB / 0.8073 GB Notification: Performance of SimCode: time 9.82e-07/0.01355, allocations: 3.938 kB / 0.8889 GB, free: 9.648 MB / 0.8073 GB Notification: Performance of Templates: time 0.005534/0.01908, allocations: 3.082 MB / 0.8919 GB, free: 6.613 MB / 0.8073 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.544515879824758]