Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001187/0.001187, allocations: 105.6 kB / 15.99 MB, free: 5.895 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.001262/0.001262, allocations: 191.2 kB / 16.91 MB, free: 5.746 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.343/1.343, allocations: 222.9 MB / 240.6 MB, free: 15.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.599/2.599, allocations: 469.8 MB / 0.7427 GB, free: 3.613 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 62.92 kB / 0.9087 GB, free: 14.21 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3311, allocations: 159.1 MB / 1.064 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00395/0.335, allocations: 2.019 MB / 1.066 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001451/0.3365, allocations: 0.6935 MB / 1.067 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001885/0.3367, allocations: 8 kB / 1.067 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0002778/0.337, allocations: 79.69 kB / 1.067 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001829/0.3373, allocations: 75.77 kB / 1.067 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006902/0.338, allocations: 171.1 kB / 1.067 GB, free: 12.03 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0004358/0.3384, allocations: 263.4 kB / 1.067 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001964/0.3386, allocations: 70.09 kB / 1.067 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002198/0.3389, allocations: 119.6 kB / 1.068 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002605/0.3391, allocations: 147.5 kB / 1.068 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.803e-05/0.3392, allocations: 24 kB / 1.068 GB, free: 11.42 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001624/0.3394, allocations: 91.94 kB / 1.068 GB, free: 11.33 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001006/0.3395, allocations: 67.7 kB / 1.068 GB, free: 11.26 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001298/0.3396, allocations: 111.3 kB / 1.068 GB, free: 11.15 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003599/0.34, allocations: 219.6 kB / 1.068 GB, free: 10.94 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.34, allocations: 0 / 1.068 GB, free: 10.94 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.515e-06/0.34, allocations: 0 / 1.068 GB, free: 10.94 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.086e-05/0.34, allocations: 0 / 1.068 GB, free: 10.94 MB / 0.8419 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.001058/0.3411, allocations: 0.578 MB / 1.069 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.3411, allocations: 12.03 kB / 1.069 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.487e-05/0.3412, allocations: 28.56 kB / 1.069 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005002/0.3417, allocations: 302.9 kB / 1.069 GB, free: 9.934 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.035e-05/0.3418, allocations: 8.375 kB / 1.069 GB, free: 9.926 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.868e-05/0.3418, allocations: 16.38 kB / 1.069 GB, free: 9.91 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004387/0.3423, allocations: 231.2 kB / 1.069 GB, free: 9.66 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.3423, allocations: 0 / 1.069 GB, free: 9.66 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.481e-05/0.3423, allocations: 8 kB / 1.069 GB, free: 9.652 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.3423, allocations: 4 kB / 1.069 GB, free: 9.648 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002661/0.3426, allocations: 132.3 kB / 1.069 GB, free: 9.52 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00102/0.3436, allocations: 0.6846 MB / 1.07 GB, free: 8.777 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003778/0.344, allocations: 170.4 kB / 1.07 GB, free: 8.602 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001748/0.3442, allocations: 96.95 kB / 1.07 GB, free: 8.504 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.176e-05/0.3442, allocations: 0 / 1.07 GB, free: 8.504 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003567/0.3446, allocations: 183.1 kB / 1.071 GB, free: 8.309 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=15): time 3.667e-06/0.3446, allocations: 3.984 kB / 1.071 GB, free: 8.305 MB / 0.8419 GB Notification: Performance of matching and sorting (n=15): time 0.0007237/0.3454, allocations: 367 kB / 1.071 GB, free: 7.934 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.593e-05/0.3455, allocations: 136.6 kB / 1.071 GB, free: 7.77 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003177/0.3458, allocations: 282.5 kB / 1.071 GB, free: 7.488 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.134e-05/0.3458, allocations: 37.7 kB / 1.071 GB, free: 7.445 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.346, allocations: 156.2 kB / 1.071 GB, free: 7.289 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.853e-05/0.346, allocations: 43.44 kB / 1.072 GB, free: 7.246 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.054e-05/0.3461, allocations: 45.61 kB / 1.072 GB, free: 7.195 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001518/0.3463, allocations: 338.8 kB / 1.072 GB, free: 6.855 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001744/0.3465, allocations: 83.89 kB / 1.072 GB, free: 6.773 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001974/0.3467, allocations: 141 kB / 1.072 GB, free: 6.617 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003612/0.347, allocations: 236.8 kB / 1.072 GB, free: 6.363 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.347, allocations: 3.938 kB / 1.072 GB, free: 6.359 MB / 0.8419 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005334/0.3476, allocations: 332.8 kB / 1.073 GB, free: 6.023 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 5.326e-05/0.3477, allocations: 43.72 kB / 1.073 GB, free: 5.977 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.3477, allocations: 4 kB / 1.073 GB, free: 5.973 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.3477, allocations: 0 / 1.073 GB, free: 5.973 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001295/0.3478, allocations: 23.98 kB / 1.073 GB, free: 5.949 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.3478, allocations: 3.938 kB / 1.073 GB, free: 5.945 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001278/0.348, allocations: 27.83 kB / 1.073 GB, free: 5.918 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.823e-05/0.348, allocations: 8.094 kB / 1.073 GB, free: 5.91 MB / 0.8419 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.0001863/0.3482, allocations: 193.5 kB / 1.073 GB, free: 5.707 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.67e-05/0.3482, allocations: 23.72 kB / 1.073 GB, free: 5.684 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.431e-05/0.3483, allocations: 29.83 kB / 1.073 GB, free: 5.656 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.3483, allocations: 4 kB / 1.073 GB, free: 5.652 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.3483, allocations: 0 / 1.073 GB, free: 5.652 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.3483, allocations: 0 / 1.073 GB, free: 5.652 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002899/0.3486, allocations: 289.4 kB / 1.073 GB, free: 5.32 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3487, allocations: 7.938 kB / 1.073 GB, free: 5.312 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001091/0.3488, allocations: 19.92 kB / 1.073 GB, free: 5.293 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.3488, allocations: 0 / 1.073 GB, free: 5.293 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.268e-05/0.3488, allocations: 8 kB / 1.073 GB, free: 5.285 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3488, allocations: 0 / 1.073 GB, free: 5.285 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3488, allocations: 0 / 1.073 GB, free: 5.285 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007503/0.3496, allocations: 471.8 kB / 1.074 GB, free: 4.801 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.553e-05/0.3497, allocations: 92.86 kB / 1.074 GB, free: 4.691 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.491e-05/0.3497, allocations: 12 kB / 1.074 GB, free: 4.68 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/0.3498, allocations: 11.98 kB / 1.074 GB, free: 4.668 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.706e-05/0.3499, allocations: 27.91 kB / 1.074 GB, free: 4.641 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.729e-05/0.3499, allocations: 7.984 kB / 1.074 GB, free: 4.633 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002083/0.3501, allocations: 202 kB / 1.074 GB, free: 4.434 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3502, allocations: 0 / 1.074 GB, free: 4.434 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002975/0.3505, allocations: 63.97 kB / 1.074 GB, free: 4.371 MB / 0.8419 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.0002252/0.3507, allocations: 135.2 kB / 1.074 GB, free: 4.23 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0005253/0.3512, allocations: 299.3 kB / 1.075 GB, free: 3.926 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3512, allocations: 0 / 1.075 GB, free: 3.926 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002484/0.3515, allocations: 187.3 kB / 1.075 GB, free: 3.73 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000317/0.3518, allocations: 43.61 kB / 1.075 GB, free: 3.691 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00112/0.3529, allocations: 0.5574 MB / 1.075 GB, free: 3.098 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000377/0.3533, allocations: 0.7552 MB / 1.076 GB, free: 2.316 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.072e-05/0.3534, allocations: 19.44 kB / 1.076 GB, free: 2.297 MB / 0.8419 GB Notification: Performance of SimCode: time 2.61e-07/0.3534, allocations: 7.938 kB / 1.076 GB, free: 2.289 MB / 0.8419 GB Notification: Performance of Templates: time 0.4675/0.8209, allocations: 2.978 MB / 1.079 GB, free: 22.06 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches