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.007559/0.007559, allocations: 102.9 kB / 15.73 MB, free: 6.477 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.001896/0.001896, allocations: 194.4 kB / 16.67 MB, free: 6.379 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.366/1.366, allocations: 222.9 MB / 240.4 MB, free: 4.34 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.379/2.379, allocations: 390.3 MB / 0.6648 GB, free: 184 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 66.28 kB / 0.9504 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2387/0.2399, allocations: 140.4 MB / 1.087 GB, free: 2.141 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003093/0.243, allocations: 1.948 MB / 1.089 GB, free: 180 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00124/0.2443, allocations: 0.718 MB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001205/0.2444, allocations: 0 / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002261/0.2446, allocations: 79.64 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001342/0.2448, allocations: 91.56 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005714/0.2454, allocations: 187.7 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003131/0.2457, allocations: 271.4 kB / 1.091 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001638/0.2459, allocations: 76.14 kB / 1.091 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001737/0.246, allocations: 115.6 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001989/0.2463, allocations: 151.5 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.761e-05/0.2463, allocations: 20 kB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001496/0.2465, allocations: 95.92 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.546e-05/0.2465, allocations: 59.77 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001119/0.2467, allocations: 107.3 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003654/0.247, allocations: 311 kB / 1.092 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2471, allocations: 0 / 1.092 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.543e-06/0.2471, allocations: 0 / 1.092 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.133e-06/0.2471, allocations: 4 kB / 1.092 GB, free: 13.92 MB / 0.8575 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.0008612/0.2479, allocations: 0.578 MB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.248, allocations: 8.031 kB / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.957e-05/0.248, allocations: 46.73 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.034e-05/0.2481, allocations: 32.56 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004789/0.2486, allocations: 306.9 kB / 1.093 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.283e-05/0.2486, allocations: 8.375 kB / 1.093 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.83e-05/0.2487, allocations: 24.25 kB / 1.093 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003824/0.2491, allocations: 223.6 kB / 1.093 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.2491, allocations: 0 / 1.093 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.079e-05/0.2491, allocations: 8 kB / 1.093 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.513e-06/0.2491, allocations: 4 kB / 1.093 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002465/0.2494, allocations: 132.3 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008156/0.2502, allocations: 0.6846 MB / 1.094 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003668/0.2506, allocations: 166.6 kB / 1.094 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001752/0.2508, allocations: 96.83 kB / 1.094 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.512e-05/0.2508, allocations: 4 kB / 1.094 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002629/0.251, allocations: 173 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.2511, allocations: 0 / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15): time 0.0006826/0.2517, allocations: 370.9 kB / 1.094 GB, free: 10.87 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.568e-05/0.2518, allocations: 132.5 kB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00026/0.2521, allocations: 290.6 kB / 1.095 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.654e-05/0.2521, allocations: 29.7 kB / 1.095 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.000113/0.2523, allocations: 156.3 kB / 1.095 GB, free: 10.22 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.836e-05/0.2523, allocations: 43.36 kB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.718e-05/0.2524, allocations: 33.72 kB / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001204/0.2525, allocations: 346.7 kB / 1.095 GB, free: 9.793 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001659/0.2527, allocations: 87.95 kB / 1.095 GB, free: 9.707 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001947/0.2529, allocations: 133.1 kB / 1.096 GB, free: 9.559 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003351/0.2532, allocations: 236.1 kB / 1.096 GB, free: 9.305 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.2532, allocations: 4 kB / 1.096 GB, free: 9.301 MB / 0.8575 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004918/0.2537, allocations: 335 kB / 1.096 GB, free: 8.961 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.484e-05/0.2538, allocations: 35.27 kB / 1.096 GB, free: 8.922 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.2538, allocations: 4 kB / 1.096 GB, free: 8.918 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.2538, allocations: 4 kB / 1.096 GB, free: 8.914 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001397/0.2539, allocations: 27.92 kB / 1.096 GB, free: 8.887 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.254, allocations: 4 kB / 1.096 GB, free: 8.883 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001221/0.2541, allocations: 23.92 kB / 1.096 GB, free: 8.859 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.847e-05/0.2541, allocations: 8 kB / 1.096 GB, free: 8.852 MB / 0.8575 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.0001708/0.2543, allocations: 191.5 kB / 1.096 GB, free: 8.648 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.985e-05/0.2543, allocations: 31.66 kB / 1.096 GB, free: 8.617 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.976e-05/0.2544, allocations: 25.83 kB / 1.096 GB, free: 8.594 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.2544, allocations: 3.984 kB / 1.096 GB, free: 8.59 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.2544, allocations: 0 / 1.096 GB, free: 8.59 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.2544, allocations: 11.94 kB / 1.096 GB, free: 8.578 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000237/0.2547, allocations: 301.4 kB / 1.097 GB, free: 8.234 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.2547, allocations: 3.938 kB / 1.097 GB, free: 8.23 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001059/0.2548, allocations: 19.98 kB / 1.097 GB, free: 8.211 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.2548, allocations: 0 / 1.097 GB, free: 8.211 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.684e-05/0.2548, allocations: 4 kB / 1.097 GB, free: 8.207 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.2548, allocations: 0 / 1.097 GB, free: 8.207 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2548, allocations: 0 / 1.097 GB, free: 8.207 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006974/0.2555, allocations: 470.3 kB / 1.097 GB, free: 7.723 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.892e-05/0.2556, allocations: 100.8 kB / 1.097 GB, free: 7.605 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.857e-05/0.2557, allocations: 4 kB / 1.097 GB, free: 7.602 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/0.2558, allocations: 15.98 kB / 1.097 GB, free: 7.586 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.86e-05/0.2559, allocations: 27.95 kB / 1.097 GB, free: 7.559 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.907e-05/0.2559, allocations: 4 kB / 1.097 GB, free: 7.555 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.000177/0.2561, allocations: 202 kB / 1.098 GB, free: 7.359 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2561, allocations: 4.062 kB / 1.098 GB, free: 7.355 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002805/0.2564, allocations: 63.83 kB / 1.098 GB, free: 7.293 MB / 0.8575 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.001012/0.2574, allocations: 1.026 MB / 1.099 GB, free: 6.234 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.00046/0.2578, allocations: 291.2 kB / 1.099 GB, free: 5.938 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2579, allocations: 0 / 1.099 GB, free: 5.938 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002359/0.2581, allocations: 187.3 kB / 1.099 GB, free: 5.742 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002838/0.2584, allocations: 24.55 kB / 1.099 GB, free: 5.719 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003356/0.2618, allocations: 2.78 MB / 1.102 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002962/0.2621, allocations: 0.7475 MB / 1.103 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.742e-05/0.2622, allocations: 25.91 kB / 1.103 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001016/0.2623, allocations: 67.42 kB / 1.103 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of SimCode: time 4.91e-07/0.2623, allocations: 4 kB / 1.103 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2371/0.4994, allocations: 5.405 MB / 1.108 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.185/8.685, allocations: 7.188 kB / 1.108 GB, free: 12.66 MB / 0.8731 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