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.001768/0.001768, allocations: 76.23 kB / 19.18 MB, free: 2.52 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.002434/0.002434, allocations: 165.7 kB / 22.45 MB, free: 5.375 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.595/1.595, allocations: 177.1 MB / 202.8 MB, free: 9.176 MB / 190.1 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.005/3.005, allocations: 377.8 MB / 0.6221 GB, free: 12.57 MB / 0.5919 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 2.445e-06/2.445e-06, allocations: 0 / 0.9814 GB, free: 11.98 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 4.227e-05/4.471e-05, allocations: 2.281 kB / 0.9814 GB, free: 11.98 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004611/0.004656, allocations: 1.932 MB / 0.9833 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001873/0.006529, allocations: 0.6973 MB / 0.984 GB, free: 9.332 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001729/0.006702, allocations: 11.88 kB / 0.984 GB, free: 9.32 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0003924/0.007094, allocations: 75.7 kB / 0.9841 GB, free: 9.246 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001826/0.007277, allocations: 103.4 kB / 0.9842 GB, free: 9.145 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007951/0.008072, allocations: 190.5 kB / 0.9843 GB, free: 8.961 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0004378/0.00851, allocations: 263.4 kB / 0.9846 GB, free: 8.703 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002214/0.008731, allocations: 50.19 kB / 0.9846 GB, free: 8.656 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000276/0.009007, allocations: 155.7 kB / 0.9848 GB, free: 8.504 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002754/0.009282, allocations: 143.7 kB / 0.9849 GB, free: 8.363 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.864e-05/0.009331, allocations: 20 kB / 0.9849 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001811/0.009512, allocations: 87.88 kB / 0.985 GB, free: 8.258 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.000118/0.00963, allocations: 59.77 kB / 0.9851 GB, free: 8.199 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.000114/0.009744, allocations: 63.83 kB / 0.9852 GB, free: 8.137 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0005523/0.0103, allocations: 327 kB / 0.9855 GB, free: 7.816 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 1.039e-05/0.01031, allocations: 8 kB / 0.9855 GB, free: 7.809 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.242e-06/0.01031, allocations: 0 / 0.9855 GB, free: 7.809 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.167e-05/0.01032, allocations: 4 kB / 0.9855 GB, free: 7.805 MB / 0.9356 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.001164/0.01148, allocations: 0.5102 MB / 0.986 GB, free: 7.258 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.33e-05/0.01154, allocations: 8.031 kB / 0.986 GB, free: 7.25 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.762e-05/0.01162, allocations: 28.8 kB / 0.986 GB, free: 7.223 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006833/0.01231, allocations: 248.9 kB / 0.9862 GB, free: 6.957 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.184e-05/0.01234, allocations: 8.375 kB / 0.9863 GB, free: 6.949 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.765e-05/0.0124, allocations: 16.38 kB / 0.9863 GB, free: 6.934 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006474/0.01305, allocations: 296.9 kB / 0.9866 GB, free: 6.602 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.01306, allocations: 192 / 0.9866 GB, free: 6.602 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.229e-05/0.01309, allocations: 12.12 kB / 0.9866 GB, free: 6.59 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.0131, allocations: 4 kB / 0.9866 GB, free: 6.586 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003535/0.01345, allocations: 162 kB / 0.9867 GB, free: 6.422 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001172/0.01463, allocations: 0.5868 MB / 0.9873 GB, free: 5.797 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004943/0.01512, allocations: 180.2 kB / 0.9875 GB, free: 5.605 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002284/0.01535, allocations: 118.7 kB / 0.9876 GB, free: 5.48 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/0.01537, allocations: 4 kB / 0.9876 GB, free: 5.477 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004084/0.01578, allocations: 210.7 kB / 0.9878 GB, free: 5.246 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=15): time 2.074e-06/0.01578, allocations: 0 / 0.9878 GB, free: 5.246 MB / 0.9356 GB Notification: Performance of matching and sorting (n=15): time 0.0009499/0.01673, allocations: 442.3 kB / 0.9882 GB, free: 4.789 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001299/0.01686, allocations: 132.5 kB / 0.9883 GB, free: 4.629 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003349/0.01719, allocations: 273.8 kB / 0.9886 GB, free: 4.355 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.986e-05/0.01723, allocations: 33.7 kB / 0.9886 GB, free: 4.316 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001649/0.0174, allocations: 156.3 kB / 0.9888 GB, free: 4.16 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.249e-05/0.01745, allocations: 47.73 kB / 0.9888 GB, free: 4.113 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.025e-05/0.01753, allocations: 45.64 kB / 0.9889 GB, free: 4.062 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0002585/0.01779, allocations: 334.8 kB / 0.9892 GB, free: 3.727 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00024/0.01803, allocations: 121.6 kB / 0.9893 GB, free: 3.602 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002853/0.01832, allocations: 210.2 kB / 0.9895 GB, free: 3.359 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004234/0.01874, allocations: 245.3 kB / 0.9897 GB, free: 3.098 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.01874, allocations: 0 / 0.9897 GB, free: 3.098 MB / 0.9356 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006469/0.01939, allocations: 376.7 kB / 0.9901 GB, free: 2.711 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 6.093e-05/0.01945, allocations: 41.69 kB / 0.9901 GB, free: 2.664 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.01946, allocations: 3.984 kB / 0.9901 GB, free: 2.66 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.335e-05/0.01948, allocations: 4 kB / 0.9901 GB, free: 2.656 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001509/0.01963, allocations: 23.92 kB / 0.9902 GB, free: 2.633 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/0.01965, allocations: 4 kB / 0.9902 GB, free: 2.629 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001299/0.01978, allocations: 19.88 kB / 0.9902 GB, free: 2.609 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.375e-05/0.0198, allocations: 16.09 kB / 0.9902 GB, free: 2.594 MB / 0.9356 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.0002395/0.02004, allocations: 191.5 kB / 0.9904 GB, free: 2.391 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.456e-05/0.02008, allocations: 27.8 kB / 0.9904 GB, free: 2.363 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.446e-05/0.02016, allocations: 25.77 kB / 0.9904 GB, free: 2.328 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.02016, allocations: 0 / 0.9904 GB, free: 2.328 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.301e-06/0.02017, allocations: 0 / 0.9904 GB, free: 2.328 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.02017, allocations: 4 kB / 0.9904 GB, free: 2.324 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003035/0.02048, allocations: 205.2 kB / 0.9906 GB, free: 2.094 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.02048, allocations: 0 / 0.9906 GB, free: 2.094 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001079/0.02059, allocations: 19.98 kB / 0.9907 GB, free: 2.074 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.01e-05/0.0206, allocations: 11.88 kB / 0.9907 GB, free: 2.062 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.945e-05/0.02062, allocations: 0 / 0.9907 GB, free: 2.062 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.42e-06/0.02062, allocations: 4 kB / 0.9907 GB, free: 2.059 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.02062, allocations: 0 / 0.9907 GB, free: 2.059 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009355/0.02156, allocations: 0.5213 MB / 0.9912 GB, free: 1.5 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.866e-05/0.02161, allocations: 27.77 kB / 0.9912 GB, free: 1.473 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.648e-05/0.02165, allocations: 8 kB / 0.9912 GB, free: 1.465 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001286/0.02178, allocations: 16.05 kB / 0.9912 GB, free: 1.449 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.02189, allocations: 23.95 kB / 0.9912 GB, free: 1.426 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.694e-05/0.02191, allocations: 8 kB / 0.9913 GB, free: 1.418 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0002181/0.02213, allocations: 193.2 kB / 0.9914 GB, free: 1.23 MB / 0.9356 GB Notification: Performance of sort global known variables: time 6e-08/0.02213, allocations: 0 / 0.9914 GB, free: 1.23 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003172/0.02245, allocations: 63.88 kB / 0.9915 GB, free: 1.168 MB / 0.9356 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.0002619/0.02271, allocations: 134.1 kB / 0.9916 GB, free: 1.031 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000638/0.02335, allocations: 334.6 kB / 0.9919 GB, free: 0.6797 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.02335, allocations: 0 / 0.9919 GB, free: 0.6797 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002843/0.02364, allocations: 193.1 kB / 0.9921 GB, free: 484 kB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00032/0.02396, allocations: 28.34 kB / 0.9922 GB, free: 456 kB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001009/0.02497, allocations: 480.8 kB / 0.9926 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001778/0.02514, allocations: 140.7 kB / 0.9928 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 8.057e-05/0.02522, allocations: 17.48 kB / 0.9928 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.706e-05/0.02528, allocations: 20.48 kB / 0.9928 GB, free: 15.75 MB / 0.9512 GB Notification: Performance of SimCode: time 4e-07/0.02528, allocations: 0 / 0.9928 GB, free: 15.75 MB / 0.9512 GB Notification: Performance of Templates: time 0.008139/0.03342, allocations: 2.883 MB / 0.9956 GB, free: 12.92 MB / 0.9512 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: 9.233228709548712]