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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001939/0.001939, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001229/0.001229, allocations: 193.5 kB / 16.25 MB, free: 6.621 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.465/1.465, allocations: 222.9 MB / 239.9 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.869/2.869, allocations: 472.6 MB / 0.7448 GB, free: 4.867 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 62.7 kB / 0.9116 GB, free: 33.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3225/0.3238, allocations: 159.9 MB / 1.068 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004265/0.3281, allocations: 2.021 MB / 1.07 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001396/0.3295, allocations: 0.6936 MB / 1.07 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001203/0.3296, allocations: 11.94 kB / 1.07 GB, free: 8 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002659/0.3299, allocations: 67.77 kB / 1.07 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001237/0.3301, allocations: 79.7 kB / 1.071 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006008/0.3307, allocations: 167.8 kB / 1.071 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003341/0.331, allocations: 271.2 kB / 1.071 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002192/0.3312, allocations: 74.09 kB / 1.071 GB, free: 7.352 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001511/0.3314, allocations: 115.6 kB / 1.071 GB, free: 7.238 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002261/0.3316, allocations: 151.5 kB / 1.071 GB, free: 7.09 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.607e-05/0.3317, allocations: 24 kB / 1.071 GB, free: 7.066 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001512/0.3318, allocations: 99.86 kB / 1.071 GB, free: 6.969 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.888e-05/0.3319, allocations: 59.77 kB / 1.071 GB, free: 6.91 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001081/0.3321, allocations: 111.3 kB / 1.072 GB, free: 6.801 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004578/0.3325, allocations: 295.1 kB / 1.072 GB, free: 6.512 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.3325, allocations: 0 / 1.072 GB, free: 6.512 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.374e-06/0.3325, allocations: 0 / 1.072 GB, free: 6.512 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.603e-06/0.3326, allocations: 0 / 1.072 GB, free: 6.512 MB / 0.8262 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.001034/0.3336, allocations: 0.5819 MB / 1.072 GB, free: 5.875 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.3336, allocations: 8.031 kB / 1.072 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.52e-05/0.3337, allocations: 32.56 kB / 1.072 GB, free: 5.836 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004406/0.3342, allocations: 290.9 kB / 1.073 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.327e-05/0.3342, allocations: 12.38 kB / 1.073 GB, free: 5.504 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.447e-05/0.3342, allocations: 12.38 kB / 1.073 GB, free: 5.492 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003971/0.3346, allocations: 235.2 kB / 1.073 GB, free: 5.238 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.938e-06/0.3347, allocations: 3.938 kB / 1.073 GB, free: 5.234 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.096e-05/0.3347, allocations: 4 kB / 1.073 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.762e-06/0.3347, allocations: 4 kB / 1.073 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002443/0.335, allocations: 136.3 kB / 1.073 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00091/0.3359, allocations: 0.6846 MB / 1.074 GB, free: 4.352 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003528/0.3362, allocations: 170.4 kB / 1.074 GB, free: 4.176 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001659/0.3364, allocations: 96.95 kB / 1.074 GB, free: 4.078 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.818e-05/0.3364, allocations: 4 kB / 1.074 GB, free: 4.074 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003654/0.3368, allocations: 177 kB / 1.074 GB, free: 3.883 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=15): time 1.794e-06/0.3368, allocations: 3.938 kB / 1.074 GB, free: 3.879 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15): time 0.0007202/0.3375, allocations: 369.5 kB / 1.075 GB, free: 3.508 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.27e-05/0.3376, allocations: 132.5 kB / 1.075 GB, free: 3.348 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003846/0.338, allocations: 282.6 kB / 1.075 GB, free: 3.062 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.91e-05/0.3381, allocations: 33.7 kB / 1.075 GB, free: 3.023 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001769/0.3383, allocations: 160.2 kB / 1.075 GB, free: 2.863 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.191e-05/0.3383, allocations: 39.36 kB / 1.075 GB, free: 2.824 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.521e-05/0.3384, allocations: 41.7 kB / 1.075 GB, free: 2.777 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000135/0.3385, allocations: 338.8 kB / 1.076 GB, free: 2.438 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001612/0.3387, allocations: 91.83 kB / 1.076 GB, free: 2.348 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001888/0.3389, allocations: 133.1 kB / 1.076 GB, free: 2.199 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003339/0.3392, allocations: 240.1 kB / 1.076 GB, free: 1.941 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3392, allocations: 0 / 1.076 GB, free: 1.941 MB / 0.8262 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005211/0.3398, allocations: 341 kB / 1.076 GB, free: 1.598 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.277e-05/0.3398, allocations: 37.69 kB / 1.076 GB, free: 1.555 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/0.3398, allocations: 0 / 1.076 GB, free: 1.555 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.3399, allocations: 4 kB / 1.076 GB, free: 1.551 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001305/0.34, allocations: 23.92 kB / 1.076 GB, free: 1.527 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.34, allocations: 3.938 kB / 1.076 GB, free: 1.523 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000127/0.3402, allocations: 27.83 kB / 1.076 GB, free: 1.496 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.048e-05/0.3402, allocations: 12.09 kB / 1.076 GB, free: 1.484 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.0003135/0.3405, allocations: 187.5 kB / 1.077 GB, free: 1.285 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.254e-05/0.3406, allocations: 27.72 kB / 1.077 GB, free: 1.258 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.914e-05/0.3406, allocations: 29.83 kB / 1.077 GB, free: 1.23 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.3406, allocations: 0 / 1.077 GB, free: 1.23 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.3406, allocations: 0 / 1.077 GB, free: 1.23 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.147e-06/0.3406, allocations: 0 / 1.077 GB, free: 1.23 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002811/0.3409, allocations: 293.3 kB / 1.077 GB, free: 0.8945 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.3409, allocations: 11.94 kB / 1.077 GB, free: 0.8828 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001081/0.3411, allocations: 12 kB / 1.077 GB, free: 0.8711 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.791e-06/0.3411, allocations: 3.984 kB / 1.077 GB, free: 0.8672 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.205e-05/0.3411, allocations: 8 kB / 1.077 GB, free: 0.8594 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.3411, allocations: 0 / 1.077 GB, free: 0.8594 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3411, allocations: 0 / 1.077 GB, free: 0.8594 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008104/0.3419, allocations: 466.2 kB / 1.077 GB, free: 388 kB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.877e-05/0.342, allocations: 104.8 kB / 1.078 GB, free: 264 kB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.159e-05/0.342, allocations: 8 kB / 1.078 GB, free: 256 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/0.3422, allocations: 15.98 kB / 1.078 GB, free: 240 kB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.634e-05/0.3422, allocations: 23.97 kB / 1.078 GB, free: 216 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.213e-05/0.3423, allocations: 7.984 kB / 1.078 GB, free: 208 kB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002098/0.3425, allocations: 202.1 kB / 1.078 GB, free: 8 kB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.3425, allocations: 0 / 1.078 GB, free: 8 kB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003082/0.3428, allocations: 63.95 kB / 1.078 GB, free: 15.94 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.0002034/0.343, allocations: 142.4 kB / 1.078 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000496/0.3435, allocations: 299.2 kB / 1.078 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3435, allocations: 0 / 1.078 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002226/0.3438, allocations: 179.3 kB / 1.078 GB, free: 15.31 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003187/0.3441, allocations: 44.67 kB / 1.078 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00101/0.3451, allocations: 0.536 MB / 1.079 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004053/0.3455, allocations: 0.7531 MB / 1.08 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 9.029e-05/0.3456, allocations: 17.55 kB / 1.08 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.144e-05/0.3457, allocations: 19.44 kB / 1.08 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of SimCode: time 2.31e-07/0.3457, allocations: 0 / 1.08 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of Templates: time 0.006282/0.352, allocations: 2.668 MB / 1.082 GB, free: 11.24 MB / 0.8419 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