Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_10_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.004725/0.004725, allocations: 96.72 kB / 15.73 MB, free: 6 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.001356/0.001356, allocations: 186.2 kB / 16.67 MB, free: 5.93 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.28/1.28, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.361/2.361, allocations: 437.1 MB / 0.7106 GB, free: 4.875 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001704/0.001704, allocations: 63.89 kB / 1.018 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.2525, allocations: 151.6 MB / 1.166 GB, free: 7.23 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002898/0.2554, allocations: 1.946 MB / 1.168 GB, free: 5.262 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001047/0.2565, allocations: 0.7171 MB / 1.169 GB, free: 4.539 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.081e-05/0.2566, allocations: 4 kB / 1.169 GB, free: 4.535 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001913/0.2568, allocations: 83.64 kB / 1.169 GB, free: 4.453 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001221/0.2569, allocations: 95.56 kB / 1.169 GB, free: 4.359 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004779/0.2574, allocations: 187.1 kB / 1.169 GB, free: 4.18 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002755/0.2577, allocations: 263.4 kB / 1.169 GB, free: 3.922 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001338/0.2578, allocations: 77.81 kB / 1.169 GB, free: 3.848 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001209/0.2579, allocations: 107.7 kB / 1.17 GB, free: 3.742 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001832/0.2581, allocations: 155.4 kB / 1.17 GB, free: 3.59 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.471e-05/0.2582, allocations: 20 kB / 1.17 GB, free: 3.57 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000137/0.2583, allocations: 99.91 kB / 1.17 GB, free: 3.473 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 6.98e-05/0.2584, allocations: 51.84 kB / 1.17 GB, free: 3.422 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001009/0.2585, allocations: 107.3 kB / 1.17 GB, free: 3.316 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000333/0.2588, allocations: 310.8 kB / 1.17 GB, free: 3.012 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.2588, allocations: 4 kB / 1.17 GB, free: 3.008 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.022e-06/0.2588, allocations: 0 / 1.17 GB, free: 3.008 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.198e-06/0.2588, allocations: 0 / 1.17 GB, free: 3.008 MB / 0.92 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.000762/0.2596, allocations: 0.5777 MB / 1.171 GB, free: 2.375 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 2.918e-05/0.2596, allocations: 19.95 kB / 1.171 GB, free: 2.355 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.353e-05/0.2597, allocations: 42.75 kB / 1.171 GB, free: 2.305 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.708e-05/0.2598, allocations: 40.75 kB / 1.171 GB, free: 2.266 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004283/0.2602, allocations: 311 kB / 1.171 GB, free: 1.922 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.953e-05/0.2602, allocations: 8.375 kB / 1.171 GB, free: 1.914 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.482e-05/0.2603, allocations: 16.38 kB / 1.171 GB, free: 1.898 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003501/0.2606, allocations: 227.6 kB / 1.171 GB, free: 1.652 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.2606, allocations: 0 / 1.171 GB, free: 1.652 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.749e-05/0.2607, allocations: 8 kB / 1.171 GB, free: 1.645 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/0.2607, allocations: 7.984 kB / 1.171 GB, free: 1.637 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002412/0.2609, allocations: 128.3 kB / 1.172 GB, free: 1.512 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007558/0.2617, allocations: 0.6808 MB / 1.172 GB, free: 0.7734 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003386/0.262, allocations: 170.5 kB / 1.172 GB, free: 0.5977 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001541/0.2622, allocations: 96.95 kB / 1.173 GB, free: 0.5 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.253e-05/0.2622, allocations: 4 kB / 1.173 GB, free: 0.4961 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002507/0.2625, allocations: 173.1 kB / 1.173 GB, free: 316 kB / 0.92 GB Notification: Performance of pre-optimization done (n=15): time 1.342e-06/0.2625, allocations: 0 / 1.173 GB, free: 316 kB / 0.92 GB Notification: Performance of matching and sorting (n=15): time 0.0006298/0.2631, allocations: 376.6 kB / 1.173 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.05e-05/0.2632, allocations: 132.5 kB / 1.173 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002635/0.2635, allocations: 282.6 kB / 1.173 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.586e-05/0.2635, allocations: 33.7 kB / 1.173 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.2636, allocations: 160.3 kB / 1.174 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.045e-05/0.2637, allocations: 35.69 kB / 1.174 GB, free: 15.25 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.748e-05/0.2637, allocations: 41.7 kB / 1.174 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001403/0.2639, allocations: 342.8 kB / 1.174 GB, free: 14.86 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001574/0.264, allocations: 95.83 kB / 1.174 GB, free: 14.77 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001799/0.2642, allocations: 125.1 kB / 1.174 GB, free: 14.62 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003267/0.2646, allocations: 250.7 kB / 1.174 GB, free: 14.36 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.2646, allocations: 0 / 1.174 GB, free: 14.36 MB / 0.9356 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004831/0.2651, allocations: 333.4 kB / 1.175 GB, free: 14.02 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.647e-05/0.2651, allocations: 41.69 kB / 1.175 GB, free: 13.97 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.2651, allocations: 0 / 1.175 GB, free: 13.97 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.2651, allocations: 4 kB / 1.175 GB, free: 13.97 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.2652, allocations: 28.02 kB / 1.175 GB, free: 13.94 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.2652, allocations: 0 / 1.175 GB, free: 13.94 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00011/0.2654, allocations: 27.88 kB / 1.175 GB, free: 13.91 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.676e-05/0.2654, allocations: 8 kB / 1.175 GB, free: 13.91 MB / 0.9356 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.000163/0.2656, allocations: 191.4 kB / 1.175 GB, free: 13.7 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.594e-05/0.2656, allocations: 27.86 kB / 1.175 GB, free: 13.68 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.982e-05/0.2657, allocations: 29.83 kB / 1.175 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.2657, allocations: 4 kB / 1.175 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.2657, allocations: 96 / 1.175 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.2657, allocations: 3.938 kB / 1.175 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002398/0.2659, allocations: 301.3 kB / 1.175 GB, free: 13.29 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.2659, allocations: 0 / 1.175 GB, free: 13.29 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.029e-05/0.266, allocations: 15.98 kB / 1.175 GB, free: 13.28 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.266, allocations: 0 / 1.175 GB, free: 13.28 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.099e-05/0.2661, allocations: 12 kB / 1.175 GB, free: 13.27 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.2661, allocations: 0 / 1.175 GB, free: 13.27 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.2661, allocations: 0 / 1.175 GB, free: 13.27 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006649/0.2667, allocations: 474.4 kB / 1.176 GB, free: 12.78 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.686e-05/0.2668, allocations: 100.9 kB / 1.176 GB, free: 12.66 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.671e-05/0.2669, allocations: 8 kB / 1.176 GB, free: 12.66 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.388e-05/0.267, allocations: 11.98 kB / 1.176 GB, free: 12.64 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.661e-05/0.267, allocations: 27.97 kB / 1.176 GB, free: 12.62 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.143e-05/0.2671, allocations: 11.92 kB / 1.176 GB, free: 12.61 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001803/0.2673, allocations: 206 kB / 1.176 GB, free: 12.41 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2673, allocations: 0 / 1.176 GB, free: 12.41 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002407/0.2675, allocations: 59.88 kB / 1.176 GB, free: 12.35 MB / 0.9356 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.0009938/0.2685, allocations: 1.022 MB / 1.177 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004491/0.269, allocations: 295.2 kB / 1.178 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.269, allocations: 0 / 1.178 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002281/0.2692, allocations: 187.3 kB / 1.178 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000243/0.2695, allocations: 36.78 kB / 1.178 GB, free: 10.76 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003205/0.2727, allocations: 2.783 MB / 1.181 GB, free: 7.871 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003474/0.273, allocations: 0.7553 MB / 1.181 GB, free: 7.09 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.625e-05/0.2731, allocations: 17.55 kB / 1.181 GB, free: 7.074 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/0.2732, allocations: 75.41 kB / 1.181 GB, free: 7 MB / 0.9356 GB Notification: Performance of SimCode: time 2.3e-07/0.2732, allocations: 3.938 kB / 1.181 GB, free: 6.996 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.826/4.099, allocations: 5.398 MB / 1.187 GB, free: 1.711 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.71/22.81, allocations: 16.67 kB / 1.187 GB, free: 1.695 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches