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.001636/0.001637, allocations: 108 kB / 15.61 MB, free: 152 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.001208/0.001208, allocations: 195.4 kB / 16.53 MB, free: 6.664 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.338/1.338, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.28/2.28, allocations: 390.2 MB / 0.6647 GB, free: 284 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 59.91 kB / 0.8126 GB, free: 14.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5342/0.5355, allocations: 140.4 MB / 0.9497 GB, free: 9.332 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002576/0.5381, allocations: 1.948 MB / 0.9516 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009175/0.539, allocations: 0.7123 MB / 0.9523 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001008/0.5391, allocations: 3.062 kB / 0.9523 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001871/0.5393, allocations: 81.05 kB / 0.9524 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001053/0.5394, allocations: 89.02 kB / 0.9525 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004653/0.5399, allocations: 186.7 kB / 0.9527 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002384/0.5402, allocations: 275.3 kB / 0.9529 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001363/0.5403, allocations: 72.19 kB / 0.953 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001052/0.5404, allocations: 107 kB / 0.9531 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001512/0.5406, allocations: 150.8 kB / 0.9532 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.847e-05/0.5406, allocations: 20.72 kB / 0.9533 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001252/0.5408, allocations: 93.23 kB / 0.9533 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.299e-05/0.5408, allocations: 61.77 kB / 0.9534 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.461e-05/0.5409, allocations: 109.8 kB / 0.9535 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002504/0.5412, allocations: 303.1 kB / 0.9538 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.5412, allocations: 0 / 0.9538 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.142e-06/0.5412, allocations: 0.9062 kB / 0.9538 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.646e-06/0.5412, allocations: 0 / 0.9538 GB, free: 6.266 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.0006592/0.5419, allocations: 0.5886 MB / 0.9544 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.5419, allocations: 8.438 kB / 0.9544 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.557e-05/0.5419, allocations: 47.92 kB / 0.9544 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.404e-05/0.542, allocations: 27.41 kB / 0.9545 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000346/0.5424, allocations: 296.7 kB / 0.9547 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.095e-05/0.5424, allocations: 10.12 kB / 0.9547 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.255e-05/0.5424, allocations: 14.69 kB / 0.9548 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003256/0.5428, allocations: 228.9 kB / 0.955 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.5428, allocations: 3.938 kB / 0.955 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.856e-05/0.5428, allocations: 5.938 kB / 0.955 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.551e-06/0.5428, allocations: 3.219 kB / 0.955 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002324/0.543, allocations: 136.1 kB / 0.9551 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006113/0.5437, allocations: 0.6825 MB / 0.9558 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003254/0.544, allocations: 168.7 kB / 0.9559 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001627/0.5442, allocations: 98.27 kB / 0.956 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.559e-05/0.5442, allocations: 1.844 kB / 0.956 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002507/0.5445, allocations: 178.4 kB / 0.9562 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=15): time 1.363e-06/0.5445, allocations: 0 / 0.9562 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15): time 0.0005884/0.5451, allocations: 384.6 kB / 0.9566 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.247e-05/0.5451, allocations: 132.6 kB / 0.9567 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002094/0.5453, allocations: 280.5 kB / 0.957 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.858e-05/0.5453, allocations: 28.45 kB / 0.957 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.153e-05/0.5454, allocations: 162 kB / 0.9572 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.094e-05/0.5455, allocations: 38.23 kB / 0.9572 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.285e-05/0.5455, allocations: 41.45 kB / 0.9572 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.338e-05/0.5456, allocations: 342 kB / 0.9576 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001605/0.5458, allocations: 82.73 kB / 0.9576 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00017/0.5459, allocations: 132.2 kB / 0.9578 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002891/0.5462, allocations: 239.6 kB / 0.958 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.5462, allocations: 5.172 kB / 0.958 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004605/0.5467, allocations: 337 kB / 0.9583 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.881e-05/0.5467, allocations: 39.12 kB / 0.9584 GB, free: 2.617 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.5468, allocations: 5 kB / 0.9584 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.5468, allocations: 2.219 kB / 0.9584 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.5469, allocations: 21.86 kB / 0.9584 GB, free: 2.609 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.5469, allocations: 2.25 kB / 0.9584 GB, free: 2.609 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001199/0.547, allocations: 26.23 kB / 0.9584 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.581e-05/0.5471, allocations: 5.344 kB / 0.9584 GB, free: 2.594 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.0001298/0.5472, allocations: 202.6 kB / 0.9586 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.79e-05/0.5472, allocations: 24.31 kB / 0.9586 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.455e-05/0.5473, allocations: 31.36 kB / 0.9587 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.5473, allocations: 1.062 kB / 0.9587 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.5473, allocations: 1.094 kB / 0.9587 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.5473, allocations: 0 / 0.9587 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001772/0.5475, allocations: 290.2 kB / 0.9589 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-06/0.5475, allocations: 96 / 0.9589 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001031/0.5476, allocations: 24.2 kB / 0.959 GB, free: 2.09 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.5476, allocations: 1.125 kB / 0.959 GB, free: 2.09 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.828e-05/0.5476, allocations: 7.156 kB / 0.959 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.5476, allocations: 3.938 kB / 0.959 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.5476, allocations: 1 kB / 0.959 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006604/0.5483, allocations: 474.7 kB / 0.9594 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.718e-05/0.5484, allocations: 97.92 kB / 0.9595 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.341e-05/0.5484, allocations: 8.375 kB / 0.9595 GB, free: 1.715 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001108/0.5485, allocations: 20.2 kB / 0.9595 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.029e-05/0.5486, allocations: 22.5 kB / 0.9596 GB, free: 1.691 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-05/0.5486, allocations: 7.578 kB / 0.9596 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001477/0.5488, allocations: 202.7 kB / 0.9598 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5488, allocations: 0 / 0.9598 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002709/0.5491, allocations: 63.44 kB / 0.9598 GB, free: 1.543 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.0008439/0.5499, allocations: 1.023 MB / 0.9608 GB, free: 0.7539 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004179/0.5503, allocations: 301.8 kB / 0.9611 GB, free: 0.582 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.5504, allocations: 1.25 kB / 0.9611 GB, free: 0.582 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001954/0.5506, allocations: 185.3 kB / 0.9613 GB, free: 472 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002785/0.5508, allocations: 27.67 kB / 0.9613 GB, free: 460 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003303/0.5542, allocations: 2.77 MB / 0.964 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002896/0.5545, allocations: 0.7486 MB / 0.9648 GB, free: 13.79 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 8.444e-05/0.5546, allocations: 14.86 kB / 0.9648 GB, free: 13.79 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001063/0.5547, allocations: 81.06 kB / 0.9648 GB, free: 13.71 MB / 0.7325 GB Notification: Performance of SimCode: time 2.71e-07/0.5547, allocations: 7.938 kB / 0.9649 GB, free: 13.71 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02255/0.5772, allocations: 5.335 MB / 0.9701 GB, free: 11.07 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.422/7.999, allocations: 5.562 kB / 0.9701 GB, free: 11.07 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 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.csv","/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