Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001342/0.001342, allocations: 106.1 kB / 15.98 MB, free: 6.332 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.001324/0.001324, allocations: 198.6 kB / 16.91 MB, free: 6.18 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.303/1.303, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.199/2.199, allocations: 390.2 MB / 0.665 GB, free: 0.9414 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001313, allocations: 63.62 kB / 0.8127 GB, free: 33.2 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/0.2909, allocations: 140.4 MB / 0.9498 GB, free: 9.262 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003798/0.2947, allocations: 2 MB / 0.9517 GB, free: 7.242 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001399/0.2962, allocations: 0.7051 MB / 0.9524 GB, free: 6.531 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002281/0.2964, allocations: 3.938 kB / 0.9524 GB, free: 6.527 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002934/0.2968, allocations: 75.77 kB / 0.9525 GB, free: 6.453 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0002126/0.297, allocations: 83.75 kB / 0.9526 GB, free: 6.371 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007073/0.2977, allocations: 171.8 kB / 0.9527 GB, free: 6.203 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0004124/0.2982, allocations: 267.2 kB / 0.953 GB, free: 5.941 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000196/0.2984, allocations: 70.09 kB / 0.9531 GB, free: 5.875 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000221/0.2986, allocations: 119.6 kB / 0.9532 GB, free: 5.758 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002425/0.2988, allocations: 155.5 kB / 0.9533 GB, free: 5.605 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.899e-05/0.2989, allocations: 20 kB / 0.9533 GB, free: 5.586 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001601/0.2991, allocations: 91.88 kB / 0.9534 GB, free: 5.496 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 9.237e-05/0.2992, allocations: 59.83 kB / 0.9535 GB, free: 5.438 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001241/0.2993, allocations: 107.3 kB / 0.9536 GB, free: 5.332 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003383/0.2996, allocations: 219.6 kB / 0.9538 GB, free: 5.117 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.2997, allocations: 0 / 0.9538 GB, free: 5.117 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.533e-06/0.2997, allocations: 8 kB / 0.9538 GB, free: 5.109 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.159e-05/0.2997, allocations: 0 / 0.9538 GB, free: 5.109 MB / 0.7325 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.0009772/0.3007, allocations: 0.5741 MB / 0.9544 GB, free: 4.48 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.3007, allocations: 12.03 kB / 0.9544 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.794e-05/0.3008, allocations: 24.66 kB / 0.9544 GB, free: 4.445 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005034/0.3013, allocations: 306.8 kB / 0.9547 GB, free: 4.102 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.83e-05/0.3014, allocations: 16.38 kB / 0.9547 GB, free: 4.086 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.867e-05/0.3014, allocations: 16.38 kB / 0.9547 GB, free: 4.07 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004293/0.3018, allocations: 227.2 kB / 0.9549 GB, free: 3.824 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.3019, allocations: 4 kB / 0.9549 GB, free: 3.82 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.331e-05/0.3019, allocations: 8 kB / 0.9549 GB, free: 3.812 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.3019, allocations: 0 / 0.9549 GB, free: 3.812 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000254/0.3022, allocations: 128.3 kB / 0.9551 GB, free: 3.688 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009383/0.3031, allocations: 0.6808 MB / 0.9557 GB, free: 2.949 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003677/0.3035, allocations: 174.3 kB / 0.9559 GB, free: 2.77 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001694/0.3037, allocations: 101 kB / 0.956 GB, free: 2.668 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.877e-05/0.3037, allocations: 0 / 0.956 GB, free: 2.668 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003551/0.3041, allocations: 173 kB / 0.9562 GB, free: 2.48 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=15): time 1.784e-06/0.3041, allocations: 0 / 0.9562 GB, free: 2.48 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15): time 0.0006794/0.3048, allocations: 377.7 kB / 0.9565 GB, free: 2.102 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.426e-05/0.3049, allocations: 136.5 kB / 0.9567 GB, free: 1.938 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002899/0.3052, allocations: 278.7 kB / 0.9569 GB, free: 1.652 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.252e-05/0.3052, allocations: 29.7 kB / 0.9569 GB, free: 1.617 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.3053, allocations: 160.1 kB / 0.9571 GB, free: 1.457 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.308e-05/0.3054, allocations: 39.45 kB / 0.9571 GB, free: 1.418 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.745e-05/0.3055, allocations: 41.7 kB / 0.9572 GB, free: 1.371 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.3056, allocations: 334.8 kB / 0.9575 GB, free: 1.035 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001612/0.3058, allocations: 99.83 kB / 0.9576 GB, free: 0.9375 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001866/0.3059, allocations: 134.9 kB / 0.9577 GB, free: 0.7891 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003207/0.3063, allocations: 248.2 kB / 0.958 GB, free: 0.5234 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3063, allocations: 0 / 0.958 GB, free: 0.5234 MB / 0.7325 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005245/0.3068, allocations: 333.1 kB / 0.9583 GB, free: 192 kB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.421e-05/0.3069, allocations: 43.56 kB / 0.9583 GB, free: 144 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.3069, allocations: 0 / 0.9583 GB, free: 144 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.3069, allocations: 4 kB / 0.9583 GB, free: 140 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.307, allocations: 28.02 kB / 0.9583 GB, free: 112 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.3071, allocations: 4 kB / 0.9583 GB, free: 108 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001336/0.3072, allocations: 23.83 kB / 0.9584 GB, free: 84 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.173e-05/0.3072, allocations: 8 kB / 0.9584 GB, free: 76 kB / 0.7325 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.0002028/0.3074, allocations: 189.7 kB / 0.9586 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.297e-05/0.3075, allocations: 27.72 kB / 0.9586 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.533e-05/0.3076, allocations: 29.83 kB / 0.9586 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.3076, allocations: 7.984 kB / 0.9586 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.3076, allocations: 4 kB / 0.9586 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.3076, allocations: 0 / 0.9586 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002775/0.3079, allocations: 289.4 kB / 0.9589 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.3079, allocations: 0 / 0.9589 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.308, allocations: 19.92 kB / 0.9589 GB, free: 15.46 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.308, allocations: 0 / 0.9589 GB, free: 15.46 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.039e-05/0.308, allocations: 4 kB / 0.9589 GB, free: 15.46 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.308, allocations: 4 kB / 0.9589 GB, free: 15.45 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3081, allocations: 0 / 0.9589 GB, free: 15.45 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007122/0.3088, allocations: 482.2 kB / 0.9594 GB, free: 14.96 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 6.091e-05/0.3088, allocations: 96.8 kB / 0.9595 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.933e-05/0.3089, allocations: 8 kB / 0.9595 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.309, allocations: 11.98 kB / 0.9595 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.126e-05/0.3091, allocations: 23.97 kB / 0.9595 GB, free: 14.8 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.599e-05/0.3091, allocations: 19.98 kB / 0.9595 GB, free: 14.78 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001734/0.3093, allocations: 202 kB / 0.9597 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3093, allocations: 0 / 0.9597 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002903/0.3096, allocations: 51.94 kB / 0.9598 GB, free: 14.54 MB / 0.7481 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.0001995/0.3098, allocations: 139 kB / 0.9599 GB, free: 14.39 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0004847/0.3103, allocations: 299.4 kB / 0.9602 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.3103, allocations: 0 / 0.9602 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002218/0.3106, allocations: 183.3 kB / 0.9604 GB, free: 13.89 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003055/0.3109, allocations: 28.55 kB / 0.9604 GB, free: 13.87 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001051/0.3119, allocations: 0.5767 MB / 0.961 GB, free: 13.26 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003014/0.3123, allocations: 0.7553 MB / 0.9617 GB, free: 12.48 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.414e-05/0.3123, allocations: 23.44 kB / 0.9617 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of SimCode: time 4.61e-07/0.3123, allocations: 0 / 0.9617 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of Templates: time 0.00588/0.3182, allocations: 2.993 MB / 0.9647 GB, free: 9.465 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches