Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001078/0.001078, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.005936/0.005936, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.452/1.452, allocations: 223.2 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.888/2.888, allocations: 462.7 MB / 0.7364 GB, free: 284 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003739/0.0003739, allocations: 13.94 kB / 0.9028 GB, free: 36.67 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3226/0.323, allocations: 159.6 MB / 1.059 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002551/0.3256, allocations: 1.66 MB / 1.06 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001186/0.3268, allocations: 0.709 MB / 1.061 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001028/0.3269, allocations: 7.938 kB / 1.061 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002201/0.3271, allocations: 75.77 kB / 1.061 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001153/0.3273, allocations: 79.7 kB / 1.061 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004839/0.3278, allocations: 155.8 kB / 1.061 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002687/0.328, allocations: 243.4 kB / 1.062 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001741/0.3282, allocations: 66.11 kB / 1.062 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001255/0.3284, allocations: 87.67 kB / 1.062 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001886/0.3285, allocations: 131.5 kB / 1.062 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.428e-05/0.3286, allocations: 7.938 kB / 1.062 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001342/0.3287, allocations: 79.94 kB / 1.062 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.262e-05/0.3288, allocations: 47.77 kB / 1.062 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001027/0.3289, allocations: 109.1 kB / 1.062 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003153/0.3292, allocations: 283 kB / 1.062 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.3293, allocations: 0 / 1.062 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.294e-06/0.3293, allocations: 0 / 1.062 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.618e-06/0.3293, allocations: 4 kB / 1.062 GB, free: 1.75 MB / 0.8106 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.0007818/0.3301, allocations: 0.5441 MB / 1.063 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.3301, allocations: 15.97 kB / 1.063 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.826e-05/0.3302, allocations: 24.66 kB / 1.063 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004411/0.3306, allocations: 318.8 kB / 1.063 GB, free: 0.7656 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.374e-05/0.3307, allocations: 8.375 kB / 1.063 GB, free: 0.7578 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.925e-05/0.3307, allocations: 16.38 kB / 1.063 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003944/0.3311, allocations: 223.3 kB / 1.063 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.3311, allocations: 4 kB / 1.063 GB, free: 0.4961 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.39e-05/0.3312, allocations: 8 kB / 1.063 GB, free: 500 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.3312, allocations: 4 kB / 1.063 GB, free: 496 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002384/0.3314, allocations: 128.3 kB / 1.064 GB, free: 368 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008413/0.3323, allocations: 0.6924 MB / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003676/0.3326, allocations: 182.5 kB / 1.064 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001696/0.3328, allocations: 101 kB / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.464e-05/0.3328, allocations: 4 kB / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003204/0.3332, allocations: 177.1 kB / 1.065 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=15): time 1.733e-06/0.3332, allocations: 0 / 1.065 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15): time 0.0006841/0.3339, allocations: 385.3 kB / 1.065 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.066e-05/0.334, allocations: 136.5 kB / 1.065 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002685/0.3342, allocations: 278.6 kB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.678e-05/0.3343, allocations: 33.7 kB / 1.065 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.000115/0.3344, allocations: 160.1 kB / 1.066 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.091e-05/0.3344, allocations: 43.44 kB / 1.066 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.5e-05/0.3345, allocations: 33.7 kB / 1.066 GB, free: 14.01 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001234/0.3346, allocations: 330.8 kB / 1.066 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001664/0.3348, allocations: 95.89 kB / 1.066 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001898/0.335, allocations: 133.1 kB / 1.066 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003331/0.3353, allocations: 252.2 kB / 1.066 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3353, allocations: 4.031 kB / 1.066 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004869/0.3358, allocations: 340.7 kB / 1.067 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.479e-05/0.3359, allocations: 41.69 kB / 1.067 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.3359, allocations: 0 / 1.067 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.3359, allocations: 4 kB / 1.067 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001284/0.3361, allocations: 28.02 kB / 1.067 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.3361, allocations: 4.094 kB / 1.067 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001209/0.3362, allocations: 31.77 kB / 1.067 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.916e-05/0.3362, allocations: 11.98 kB / 1.067 GB, free: 12.7 MB / 0.8262 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.0001751/0.3364, allocations: 199.8 kB / 1.067 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.484e-05/0.3365, allocations: 27.72 kB / 1.067 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.372e-05/0.3365, allocations: 25.83 kB / 1.067 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.3365, allocations: 4 kB / 1.067 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.3365, allocations: 0 / 1.067 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.3365, allocations: 3.938 kB / 1.067 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002517/0.3368, allocations: 289.5 kB / 1.067 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3368, allocations: 0 / 1.067 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001025/0.3369, allocations: 19.98 kB / 1.067 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.3369, allocations: 4 kB / 1.067 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.627e-05/0.337, allocations: 4 kB / 1.067 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.337, allocations: 4 kB / 1.067 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.337, allocations: 0 / 1.067 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007126/0.3377, allocations: 494.1 kB / 1.068 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.319e-05/0.3378, allocations: 96.86 kB / 1.068 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.975e-05/0.3378, allocations: 8 kB / 1.068 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.3379, allocations: 15.98 kB / 1.068 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.741e-05/0.338, allocations: 23.95 kB / 1.068 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.113e-05/0.338, allocations: 4 kB / 1.068 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000174/0.3382, allocations: 202 kB / 1.068 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3382, allocations: 4.062 kB / 1.068 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002769/0.3385, allocations: 64.05 kB / 1.068 GB, free: 11.13 MB / 0.8262 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.0001999/0.3387, allocations: 129.4 kB / 1.068 GB, free: 11 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004702/0.3392, allocations: 310.4 kB / 1.069 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3392, allocations: 0 / 1.069 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000226/0.3394, allocations: 183.4 kB / 1.069 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003107/0.3397, allocations: 32.55 kB / 1.069 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009739/0.3407, allocations: 0.5457 MB / 1.069 GB, free: 9.887 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002842/0.341, allocations: 0.752 MB / 1.07 GB, free: 9.109 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.701e-05/0.3411, allocations: 25.53 kB / 1.07 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.049e-05/0.3412, allocations: 15.44 kB / 1.07 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of SimCode: time 2.61e-07/0.3412, allocations: 3.938 kB / 1.07 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of Templates: time 0.005695/0.3469, allocations: 2.515 MB / 1.073 GB, free: 6.566 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches