Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mot.y|mot.uppHys.y|mot.delta|ySet.y|mot.lowHys.u|mot.lowHys.y|mot.uppHys.u",fileNamePrefix="Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mot.y|mot.uppHys.y|mot.delta|ySet.y|mot.lowHys.u|mot.lowHys.y|mot.uppHys.u",fileNamePrefix="Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001445/0.001445, allocations: 196 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.532/1.532, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.816/2.816, allocations: 437 MB / 0.7104 GB, free: 5.094 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001922/0.001923, allocations: 64.05 kB / 0.8692 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7779/0.7798, allocations: 151.6 MB / 1.017 GB, free: 2.637 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004224/0.7841, allocations: 1.953 MB / 1.019 GB, free: 0.668 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001597/0.7857, allocations: 0.7168 MB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002013/0.786, allocations: 0 / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002768/0.7862, allocations: 83.64 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002/0.7865, allocations: 87.56 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007344/0.7873, allocations: 189.9 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004473/0.7877, allocations: 263.4 kB / 1.021 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002273/0.788, allocations: 67.86 kB / 1.021 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002822/0.7883, allocations: 123.6 kB / 1.021 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000283/0.7886, allocations: 151.5 kB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.434e-05/0.7886, allocations: 20 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002024/0.7888, allocations: 87.94 kB / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001112/0.7889, allocations: 55.83 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001422/0.7891, allocations: 111.3 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004967/0.7896, allocations: 299 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.7896, allocations: 4 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.313e-06/0.7896, allocations: 0 / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.251e-05/0.7896, allocations: 4 kB / 1.021 GB, free: 14.43 MB / 0.7794 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.001121/0.7908, allocations: 0.5741 MB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.7908, allocations: 12.03 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.354e-05/0.7909, allocations: 24.66 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005316/0.7915, allocations: 306.8 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.031e-05/0.7915, allocations: 16.38 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.577e-05/0.7916, allocations: 16.38 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004635/0.792, allocations: 223.2 kB / 1.023 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.792, allocations: 0 / 1.023 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.333e-05/0.7921, allocations: 12 kB / 1.023 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.7921, allocations: 4 kB / 1.023 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002733/0.7924, allocations: 129.5 kB / 1.023 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009773/0.7934, allocations: 0.6808 MB / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003896/0.7938, allocations: 170.5 kB / 1.023 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000178/0.794, allocations: 100.8 kB / 1.024 GB, free: 12 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.825e-05/0.794, allocations: 3.938 kB / 1.024 GB, free: 12 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003532/0.7943, allocations: 169 kB / 1.024 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.7944, allocations: 0 / 1.024 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15): time 0.0007531/0.7951, allocations: 375.8 kB / 1.024 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.7952, allocations: 140.5 kB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003134/0.7956, allocations: 278.7 kB / 1.025 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.121e-05/0.7956, allocations: 29.7 kB / 1.025 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000133/0.7957, allocations: 156.2 kB / 1.025 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.474e-05/0.7958, allocations: 43.45 kB / 1.025 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.027e-05/0.7959, allocations: 41.7 kB / 1.025 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001627/0.796, allocations: 330.8 kB / 1.025 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001915/0.7962, allocations: 95.89 kB / 1.025 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002146/0.7965, allocations: 133.7 kB / 1.025 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003802/0.7969, allocations: 240.3 kB / 1.026 GB, free: 9.875 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.7969, allocations: 0 / 1.026 GB, free: 9.875 MB / 0.7794 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005883/0.7975, allocations: 332.5 kB / 1.026 GB, free: 9.539 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.818e-05/0.7975, allocations: 41.69 kB / 1.026 GB, free: 9.492 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.7975, allocations: 0 / 1.026 GB, free: 9.492 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.186e-05/0.7976, allocations: 4 kB / 1.026 GB, free: 9.488 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001265/0.7977, allocations: 20.08 kB / 1.026 GB, free: 9.469 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.7977, allocations: 8 kB / 1.026 GB, free: 9.461 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001292/0.7978, allocations: 23.83 kB / 1.026 GB, free: 9.438 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.944e-05/0.7979, allocations: 8 kB / 1.026 GB, free: 9.43 MB / 0.7794 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.0002213/0.7981, allocations: 205.3 kB / 1.026 GB, free: 9.215 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.402e-05/0.7981, allocations: 23.72 kB / 1.026 GB, free: 9.191 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.022e-05/0.7982, allocations: 29.83 kB / 1.026 GB, free: 9.164 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.7982, allocations: 8 kB / 1.026 GB, free: 9.156 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.7982, allocations: 0 / 1.026 GB, free: 9.156 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.7982, allocations: 3.938 kB / 1.026 GB, free: 9.152 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003177/0.7986, allocations: 285.5 kB / 1.026 GB, free: 8.824 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.7986, allocations: 0 / 1.026 GB, free: 8.824 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001071/0.7987, allocations: 15.98 kB / 1.026 GB, free: 8.809 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.7987, allocations: 0 / 1.026 GB, free: 8.809 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.08e-05/0.7987, allocations: 4 kB / 1.026 GB, free: 8.805 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.141e-06/0.7987, allocations: 7.938 kB / 1.026 GB, free: 8.797 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.7987, allocations: 0 / 1.026 GB, free: 8.797 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008259/0.7996, allocations: 479.3 kB / 1.027 GB, free: 8.305 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.544e-05/0.7997, allocations: 92.86 kB / 1.027 GB, free: 8.195 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.723e-05/0.7997, allocations: 8.188 kB / 1.027 GB, free: 8.188 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/0.7998, allocations: 11.98 kB / 1.027 GB, free: 8.176 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.097e-05/0.7999, allocations: 31.89 kB / 1.027 GB, free: 8.145 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.477e-05/0.8, allocations: 8 kB / 1.027 GB, free: 8.137 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0002238/0.8002, allocations: 202 kB / 1.027 GB, free: 7.941 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.41e-07/0.8002, allocations: 3.938 kB / 1.027 GB, free: 7.938 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003048/0.8005, allocations: 60.11 kB / 1.027 GB, free: 7.879 MB / 0.7794 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.0002546/0.8008, allocations: 138.2 kB / 1.027 GB, free: 7.738 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005804/0.8014, allocations: 299.4 kB / 1.028 GB, free: 7.434 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.8014, allocations: 4 kB / 1.028 GB, free: 7.43 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002756/0.8017, allocations: 187.3 kB / 1.028 GB, free: 7.234 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003052/0.802, allocations: 24.55 kB / 1.028 GB, free: 7.211 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001105/0.8031, allocations: 489.3 kB / 1.028 GB, free: 6.707 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004529/0.8036, allocations: 0.7514 MB / 1.029 GB, free: 5.93 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 9.597e-05/0.8037, allocations: 21.52 kB / 1.029 GB, free: 5.906 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.897e-05/0.8037, allocations: 23.44 kB / 1.029 GB, free: 5.883 MB / 0.7794 GB Notification: Performance of SimCode: time 2e-07/0.8037, allocations: 0 / 1.029 GB, free: 5.883 MB / 0.7794 GB Notification: Performance of Templates: time 0.007968/0.8117, allocations: 2.826 MB / 1.032 GB, free: 3.078 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches