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: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001558/0.001558, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001829/0.001829, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.34/1.34, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.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.302/2.302, allocations: 390.2 MB / 0.6647 GB, free: 236 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 67.89 kB / 0.8127 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5389/0.5402, allocations: 140.4 MB / 0.9497 GB, free: 9.051 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00274/0.543, allocations: 1.936 MB / 0.9516 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001126/0.5442, allocations: 0.7122 MB / 0.9523 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001713/0.5444, allocations: 3.062 kB / 0.9523 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000223/0.5446, allocations: 89.91 kB / 0.9524 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001581/0.5448, allocations: 88 kB / 0.9525 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006048/0.5454, allocations: 186.8 kB / 0.9527 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003538/0.5457, allocations: 267.7 kB / 0.9529 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001682/0.5459, allocations: 74.34 kB / 0.953 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001818/0.5461, allocations: 119 kB / 0.9531 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001882/0.5463, allocations: 150.5 kB / 0.9532 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.545e-05/0.5464, allocations: 21.19 kB / 0.9533 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001447/0.5465, allocations: 92.55 kB / 0.9533 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.622e-05/0.5466, allocations: 53.81 kB / 0.9534 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.964e-05/0.5467, allocations: 114.7 kB / 0.9535 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003054/0.547, allocations: 303.4 kB / 0.9538 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.547, allocations: 0 / 0.9538 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.162e-06/0.547, allocations: 0 / 0.9538 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.575e-06/0.547, allocations: 0 / 0.9538 GB, free: 5.984 MB / 0.7169 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.000746/0.5478, allocations: 0.5805 MB / 0.9544 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.5478, allocations: 13.02 kB / 0.9544 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.083e-05/0.5479, allocations: 44.81 kB / 0.9544 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.345e-05/0.5479, allocations: 26.5 kB / 0.9544 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003727/0.5483, allocations: 312.4 kB / 0.9547 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.285e-05/0.5483, allocations: 11.22 kB / 0.9548 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.298e-05/0.5484, allocations: 14.16 kB / 0.9548 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003606/0.5487, allocations: 225 kB / 0.955 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.5488, allocations: 0 / 0.955 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.017e-05/0.5488, allocations: 10.22 kB / 0.955 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.523e-06/0.5488, allocations: 2.719 kB / 0.955 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002446/0.5491, allocations: 124.5 kB / 0.9551 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000731/0.5498, allocations: 0.6859 MB / 0.9558 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003343/0.5501, allocations: 163.3 kB / 0.9559 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001516/0.5503, allocations: 104.5 kB / 0.956 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.673e-05/0.5503, allocations: 1.781 kB / 0.956 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002561/0.5506, allocations: 166.1 kB / 0.9562 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=15): time 1.483e-06/0.5506, allocations: 0 / 0.9562 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15): time 0.0006302/0.5512, allocations: 378.2 kB / 0.9566 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.877e-05/0.5513, allocations: 139.9 kB / 0.9567 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002755/0.5516, allocations: 277.4 kB / 0.957 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.202e-05/0.5516, allocations: 39.19 kB / 0.957 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.595e-05/0.5517, allocations: 154.4 kB / 0.9571 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.283e-05/0.5517, allocations: 46.44 kB / 0.9572 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.506e-05/0.5518, allocations: 40.89 kB / 0.9572 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.178e-05/0.5519, allocations: 338.1 kB / 0.9575 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001569/0.552, allocations: 88.12 kB / 0.9576 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000163/0.5522, allocations: 131.9 kB / 0.9578 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002798/0.5525, allocations: 244.5 kB / 0.958 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.5525, allocations: 1.375 kB / 0.958 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004463/0.5529, allocations: 336.1 kB / 0.9583 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.124e-05/0.553, allocations: 38.17 kB / 0.9583 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.553, allocations: 1.25 kB / 0.9583 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.553, allocations: 1.938 kB / 0.9583 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001198/0.5531, allocations: 29.8 kB / 0.9584 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.5532, allocations: 9.219 kB / 0.9584 GB, free: 2.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001226/0.5533, allocations: 22.69 kB / 0.9584 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.84e-05/0.5533, allocations: 9.453 kB / 0.9584 GB, free: 2.305 MB / 0.7169 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.0001422/0.5535, allocations: 194.3 kB / 0.9586 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.198e-05/0.5535, allocations: 25.91 kB / 0.9586 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.809e-05/0.5536, allocations: 29.98 kB / 0.9587 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.5536, allocations: 6.188 kB / 0.9587 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.5536, allocations: 0 / 0.9587 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.5536, allocations: 0 / 0.9587 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001807/0.5538, allocations: 290.5 kB / 0.9589 GB, free: 1.816 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.5538, allocations: 0 / 0.9589 GB, free: 1.816 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.965e-05/0.5539, allocations: 16.48 kB / 0.959 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.5539, allocations: 0 / 0.959 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.703e-05/0.5539, allocations: 4.25 kB / 0.959 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.5539, allocations: 3.984 kB / 0.959 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.5539, allocations: 0 / 0.959 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006377/0.5546, allocations: 482.5 kB / 0.9594 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.579e-05/0.5546, allocations: 95.36 kB / 0.9595 GB, free: 1.441 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.37e-05/0.5547, allocations: 12.39 kB / 0.9595 GB, free: 1.434 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001048/0.5548, allocations: 11.58 kB / 0.9595 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.556e-05/0.5548, allocations: 26.2 kB / 0.9596 GB, free: 1.414 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.918e-05/0.5549, allocations: 12.53 kB / 0.9596 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.000151/0.555, allocations: 205.7 kB / 0.9598 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.555, allocations: 0 / 0.9598 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002864/0.5553, allocations: 55.44 kB / 0.9598 GB, free: 1.266 MB / 0.7169 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.0008685/0.5562, allocations: 1.023 MB / 0.9608 GB, free: 488 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004231/0.5566, allocations: 306.5 kB / 0.9611 GB, free: 308 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.5566, allocations: 1.062 kB / 0.9611 GB, free: 308 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001943/0.5568, allocations: 185.5 kB / 0.9613 GB, free: 184 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000289/0.5571, allocations: 36.89 kB / 0.9613 GB, free: 164 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003441/0.5606, allocations: 2.764 MB / 0.964 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002914/0.5609, allocations: 0.7572 MB / 0.9648 GB, free: 13.5 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 8.986e-05/0.561, allocations: 17.64 kB / 0.9648 GB, free: 13.49 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.5611, allocations: 73.5 kB / 0.9649 GB, free: 13.43 MB / 0.7325 GB Notification: Performance of SimCode: time 3.4e-07/0.5611, allocations: 0 / 0.9649 GB, free: 13.43 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02306/0.5842, allocations: 5.341 MB / 0.9701 GB, free: 10.79 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.486/8.07, allocations: 10.31 kB / 0.9701 GB, free: 10.78 MB / 0.7325 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > 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