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.0008686/0.0008686, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 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.0009429/0.0009429, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.8653/0.8653, allocations: 177.1 MB / 202.8 MB, free: 5.742 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.683/1.683, allocations: 377.8 MB / 0.6221 GB, free: 8.676 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: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_12_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_12_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.072e-06/1.072e-06, allocations: 0 / 0.9809 GB, free: 2.617 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.252e-05/1.36e-05, allocations: 4.953 kB / 0.9809 GB, free: 2.613 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002036/0.00205, allocations: 1.928 MB / 0.9828 GB, free: 0.6719 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0008967/0.002947, allocations: 0.7012 MB / 0.9835 GB, free: 15.96 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.185e-05/0.003039, allocations: 7.938 kB / 0.9835 GB, free: 15.96 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.0001934/0.003232, allocations: 91.5 kB / 0.9836 GB, free: 15.87 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 8.579e-05/0.003318, allocations: 87.62 kB / 0.9837 GB, free: 15.78 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004302/0.003748, allocations: 189.8 kB / 0.9839 GB, free: 15.6 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0002197/0.003968, allocations: 255.4 kB / 0.9841 GB, free: 15.35 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001243/0.004092, allocations: 50.11 kB / 0.9842 GB, free: 15.3 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000136/0.004228, allocations: 163.6 kB / 0.9843 GB, free: 15.14 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001545/0.004383, allocations: 135.7 kB / 0.9844 GB, free: 15.01 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 2.657e-05/0.004409, allocations: 20 kB / 0.9845 GB, free: 14.99 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001032/0.004512, allocations: 91.94 kB / 0.9846 GB, free: 14.9 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 6.057e-05/0.004573, allocations: 63.77 kB / 0.9846 GB, free: 14.84 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 5.628e-05/0.004629, allocations: 59.83 kB / 0.9847 GB, free: 14.78 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002745/0.004904, allocations: 335 kB / 0.985 GB, free: 14.45 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 1.893e-06/0.004906, allocations: 0 / 0.985 GB, free: 14.45 MB / 0.948 GB Notification: Performance of FrontEnd: time 6.21e-07/0.004906, allocations: 0 / 0.985 GB, free: 14.45 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.157e-06/0.00491, allocations: 0 / 0.985 GB, free: 14.45 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.0005672/0.005478, allocations: 0.518 MB / 0.9855 GB, free: 13.89 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.005512, allocations: 12.03 kB / 0.9855 GB, free: 13.88 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.106e-05/0.005543, allocations: 42.75 kB / 0.9855 GB, free: 13.83 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.186e-05/0.005584, allocations: 32.78 kB / 0.9856 GB, free: 13.8 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002926/0.005877, allocations: 240.9 kB / 0.9858 GB, free: 13.54 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.677e-05/0.005894, allocations: 8.375 kB / 0.9858 GB, free: 13.54 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.459e-05/0.005918, allocations: 20.36 kB / 0.9858 GB, free: 13.52 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002809/0.006199, allocations: 313.4 kB / 0.9861 GB, free: 13.17 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.006208, allocations: 4.125 kB / 0.9861 GB, free: 13.16 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.526e-05/0.006223, allocations: 11.94 kB / 0.9861 GB, free: 13.15 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.006228, allocations: 0 / 0.9861 GB, free: 13.15 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001683/0.006396, allocations: 159.3 kB / 0.9863 GB, free: 12.99 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005546/0.006951, allocations: 0.6175 MB / 0.9869 GB, free: 12.32 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003608/0.007312, allocations: 184.2 kB / 0.9871 GB, free: 12.13 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/0.007413, allocations: 122.7 kB / 0.9872 GB, free: 12 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.217e-05/0.007425, allocations: 3.938 kB / 0.9872 GB, free: 12 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001884/0.007613, allocations: 198.7 kB / 0.9874 GB, free: 11.78 MB / 0.948 GB Notification: Performance of pre-optimization done (n=15): time 1.153e-06/0.007614, allocations: 0 / 0.9874 GB, free: 11.78 MB / 0.948 GB Notification: Performance of matching and sorting (n=15): time 0.0004297/0.008044, allocations: 448.8 kB / 0.9878 GB, free: 11.32 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.026e-05/0.008094, allocations: 136.5 kB / 0.9879 GB, free: 11.15 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001782/0.008273, allocations: 285.8 kB / 0.9882 GB, free: 10.87 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.951e-05/0.008292, allocations: 29.7 kB / 0.9882 GB, free: 10.84 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 7.896e-05/0.008371, allocations: 156.4 kB / 0.9884 GB, free: 10.68 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.915e-05/0.0084, allocations: 51.62 kB / 0.9884 GB, free: 10.63 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.835e-05/0.008448, allocations: 37.7 kB / 0.9885 GB, free: 10.59 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.839e-05/0.008527, allocations: 334.8 kB / 0.9888 GB, free: 10.25 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001055/0.008632, allocations: 117.7 kB / 0.9889 GB, free: 10.13 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001349/0.008767, allocations: 214.2 kB / 0.9891 GB, free: 9.883 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002037/0.008971, allocations: 252.6 kB / 0.9894 GB, free: 9.613 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.008974, allocations: 0 / 0.9894 GB, free: 9.613 MB / 0.948 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003512/0.009326, allocations: 379.3 kB / 0.9897 GB, free: 9.227 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 3.46e-05/0.00936, allocations: 33.7 kB / 0.9898 GB, free: 9.188 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.009367, allocations: 4.094 kB / 0.9898 GB, free: 9.184 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.046e-05/0.009388, allocations: 7.984 kB / 0.9898 GB, free: 9.176 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.411e-05/0.009472, allocations: 19.98 kB / 0.9898 GB, free: 9.156 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.695e-06/0.009479, allocations: 4 kB / 0.9898 GB, free: 9.152 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.642e-05/0.009546, allocations: 23.88 kB / 0.9898 GB, free: 9.129 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.377e-05/0.00956, allocations: 8 kB / 0.9898 GB, free: 9.121 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.0001359/0.009695, allocations: 201.4 kB / 0.99 GB, free: 8.91 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.537e-05/0.009721, allocations: 31.84 kB / 0.99 GB, free: 8.879 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.1e-05/0.009762, allocations: 29.72 kB / 0.9901 GB, free: 8.84 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.009764, allocations: 0 / 0.9901 GB, free: 8.84 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.00977, allocations: 4 kB / 0.9901 GB, free: 8.836 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.009775, allocations: 3.984 kB / 0.9901 GB, free: 8.832 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001803/0.009956, allocations: 232.6 kB / 0.9903 GB, free: 8.562 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.009957, allocations: 0 / 0.9903 GB, free: 8.562 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.556e-05/0.01002, allocations: 20.08 kB / 0.9903 GB, free: 8.543 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.01002, allocations: 3.938 kB / 0.9903 GB, free: 8.539 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.478e-05/0.01004, allocations: 7.984 kB / 0.9903 GB, free: 8.531 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.91e-07/0.01004, allocations: 0 / 0.9903 GB, free: 8.531 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.01004, allocations: 4 kB / 0.9903 GB, free: 8.527 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005014/0.01054, allocations: 0.529 MB / 0.9909 GB, free: 7.961 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 2.684e-05/0.01057, allocations: 27.84 kB / 0.9909 GB, free: 7.934 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.866e-05/0.0106, allocations: 4 kB / 0.9909 GB, free: 7.93 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.893e-05/0.01065, allocations: 15.98 kB / 0.9909 GB, free: 7.914 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.618e-05/0.01072, allocations: 23.95 kB / 0.9909 GB, free: 7.891 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.703e-05/0.01074, allocations: 4 kB / 0.9909 GB, free: 7.887 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0001327/0.01087, allocations: 205.2 kB / 0.9911 GB, free: 7.688 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.01087, allocations: 4.062 kB / 0.9911 GB, free: 7.684 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002002/0.01107, allocations: 55.94 kB / 0.9912 GB, free: 7.629 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.0006747/0.01175, allocations: 1.096 MB / 0.9922 GB, free: 6.488 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0002831/0.01203, allocations: 334.4 kB / 0.9926 GB, free: 6.141 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.01203, allocations: 8 kB / 0.9926 GB, free: 6.133 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001284/0.01216, allocations: 181.1 kB / 0.9927 GB, free: 5.938 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001883/0.01235, allocations: 44.31 kB / 0.9928 GB, free: 5.895 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002264/0.01461, allocations: 2.928 MB / 0.9956 GB, free: 2.828 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.149e-05/0.0147, allocations: 140.8 kB / 0.9958 GB, free: 2.672 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 5.633e-05/0.01475, allocations: 17.48 kB / 0.9958 GB, free: 2.652 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.431e-05/0.01483, allocations: 76.47 kB / 0.9959 GB, free: 2.578 MB / 0.948 GB Notification: Performance of SimCode: time 6.31e-07/0.01483, allocations: 0 / 0.9959 GB, free: 2.578 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01726/0.03209, allocations: 6.25 MB / 1.002 GB, free: 12.51 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.71/6.742, allocations: 2.188 kB / 1.002 GB, free: 12.51 MB / 0.9636 GB " [Timeout remaining time 293] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --stepSize=0.24 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 420.0] 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: 10.634458146058023]