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.001936/0.001936, allocations: 111.3 kB / 15.23 MB, free: 0.6367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002496/0.002496, allocations: 201.4 kB / 16.14 MB, free: 6.805 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.552/1.552, allocations: 222.9 MB / 239.8 MB, free: 4.598 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.954/2.954, allocations: 437 MB / 0.7099 GB, free: 5.359 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002971/0.002971, allocations: 67.89 kB / 0.8686 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7792/0.7821, allocations: 151.6 MB / 1.017 GB, free: 2.898 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003635/0.7858, allocations: 2.008 MB / 1.019 GB, free: 0.875 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001291/0.7871, allocations: 0.7286 MB / 1.019 GB, free: 144 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.265e-05/0.7873, allocations: 4 kB / 1.019 GB, free: 140 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0002443/0.7875, allocations: 83.75 kB / 1.019 GB, free: 56 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001307/0.7877, allocations: 75.7 kB / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004838/0.7882, allocations: 159.3 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002864/0.7885, allocations: 243.4 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001642/0.7886, allocations: 63.86 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001364/0.7888, allocations: 99.66 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002108/0.789, allocations: 143.5 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.15e-05/0.789, allocations: 8 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001519/0.7892, allocations: 83.92 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.959e-05/0.7893, allocations: 43.83 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000112/0.7894, allocations: 103.3 kB / 1.02 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003364/0.7897, allocations: 287 kB / 1.021 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.7898, allocations: 4 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.062e-06/0.7898, allocations: 0 / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.933e-06/0.7898, allocations: 0 / 1.021 GB, free: 14.77 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.000884/0.7907, allocations: 0.578 MB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.7907, allocations: 8.031 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.408e-05/0.7908, allocations: 32.66 kB / 1.021 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004667/0.7913, allocations: 302.8 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.38e-05/0.7913, allocations: 16.38 kB / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.076e-05/0.7913, allocations: 12.38 kB / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004121/0.7918, allocations: 223.3 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.7918, allocations: 3.938 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.17e-05/0.7918, allocations: 4 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.7918, allocations: 4 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002674/0.7921, allocations: 128.4 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009363/0.793, allocations: 0.6808 MB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003939/0.7935, allocations: 174.6 kB / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001815/0.7936, allocations: 96.83 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.284e-05/0.7937, allocations: 4 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003711/0.7941, allocations: 176.9 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=15): time 1.713e-06/0.7941, allocations: 0 / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15): time 0.0007607/0.7948, allocations: 378.9 kB / 1.023 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.977e-05/0.7949, allocations: 140.5 kB / 1.024 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003097/0.7953, allocations: 274.7 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.208e-05/0.7953, allocations: 33.7 kB / 1.024 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/0.7954, allocations: 160.2 kB / 1.024 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.354e-05/0.7955, allocations: 39.45 kB / 1.024 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.592e-05/0.7956, allocations: 37.72 kB / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001646/0.7957, allocations: 338.8 kB / 1.024 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001888/0.7959, allocations: 91.89 kB / 1.024 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002083/0.7962, allocations: 135.2 kB / 1.025 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003708/0.7965, allocations: 244.6 kB / 1.025 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.7965, allocations: 0 / 1.025 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005688/0.7971, allocations: 327 kB / 1.025 GB, free: 9.867 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.708e-05/0.7972, allocations: 37.7 kB / 1.025 GB, free: 9.824 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.7972, allocations: 4.094 kB / 1.025 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.7972, allocations: 4 kB / 1.025 GB, free: 9.816 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.7973, allocations: 23.92 kB / 1.025 GB, free: 9.793 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.002e-06/0.7974, allocations: 0 / 1.025 GB, free: 9.793 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001231/0.7975, allocations: 23.83 kB / 1.025 GB, free: 9.77 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.068e-05/0.7975, allocations: 12 kB / 1.025 GB, free: 9.758 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.0002029/0.7977, allocations: 197.2 kB / 1.025 GB, free: 9.551 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.56e-05/0.7978, allocations: 31.72 kB / 1.025 GB, free: 9.52 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.85e-05/0.7978, allocations: 29.83 kB / 1.025 GB, free: 9.492 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.7979, allocations: 0 / 1.025 GB, free: 9.492 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.359e-06/0.7979, allocations: 0 / 1.025 GB, free: 9.492 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.7979, allocations: 0 / 1.025 GB, free: 9.492 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003128/0.7982, allocations: 293.3 kB / 1.026 GB, free: 9.156 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.7982, allocations: 7.938 kB / 1.026 GB, free: 9.148 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000108/0.7983, allocations: 15.98 kB / 1.026 GB, free: 9.133 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.7983, allocations: 0 / 1.026 GB, free: 9.133 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2e-05/0.7983, allocations: 4 kB / 1.026 GB, free: 9.129 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.7984, allocations: 4 kB / 1.026 GB, free: 9.125 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.7984, allocations: 96 / 1.026 GB, free: 9.125 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008381/0.7992, allocations: 476.1 kB / 1.026 GB, free: 8.637 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.964e-05/0.7993, allocations: 96.86 kB / 1.026 GB, free: 8.523 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.659e-05/0.7994, allocations: 8 kB / 1.026 GB, free: 8.516 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000107/0.7995, allocations: 11.98 kB / 1.026 GB, free: 8.504 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.401e-05/0.7996, allocations: 32.02 kB / 1.026 GB, free: 8.473 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-05/0.7996, allocations: 4 kB / 1.026 GB, free: 8.469 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0002276/0.7998, allocations: 205.9 kB / 1.027 GB, free: 8.27 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7998, allocations: 0 / 1.027 GB, free: 8.27 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002958/0.8001, allocations: 56.03 kB / 1.027 GB, free: 8.215 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.0002752/0.8004, allocations: 139.6 kB / 1.027 GB, free: 8.07 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005502/0.801, allocations: 295.1 kB / 1.027 GB, free: 7.77 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.801, allocations: 4 kB / 1.027 GB, free: 7.766 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002618/0.8013, allocations: 183.3 kB / 1.027 GB, free: 7.574 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003098/0.8016, allocations: 36.55 kB / 1.027 GB, free: 7.539 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001117/0.8027, allocations: 0.5302 MB / 1.028 GB, free: 6.984 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004681/0.8032, allocations: 0.7556 MB / 1.029 GB, free: 6.203 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 9.333e-05/0.8033, allocations: 17.55 kB / 1.029 GB, free: 6.184 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.98e-05/0.8034, allocations: 19.44 kB / 1.029 GB, free: 6.164 MB / 0.7794 GB Notification: Performance of SimCode: time 4.81e-07/0.8034, allocations: 0 / 1.029 GB, free: 6.164 MB / 0.7794 GB Notification: Performance of Templates: time 0.006612/0.81, allocations: 2.531 MB / 1.031 GB, free: 3.652 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