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.004511/0.004511, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001246/0.001246, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.419/1.419, allocations: 222.9 MB / 240.4 MB, free: 4.312 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.657/2.657, allocations: 437 MB / 0.7105 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 67.89 kB / 1.018 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.27, allocations: 151.6 MB / 1.166 GB, free: 7.328 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003168/0.2732, allocations: 1.948 MB / 1.168 GB, free: 5.359 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001251/0.2745, allocations: 0.7171 MB / 1.169 GB, free: 4.637 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.058e-05/0.2746, allocations: 4 kB / 1.169 GB, free: 4.633 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0002146/0.2748, allocations: 79.64 kB / 1.169 GB, free: 4.555 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001398/0.275, allocations: 95.56 kB / 1.169 GB, free: 4.461 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005465/0.2755, allocations: 183.7 kB / 1.169 GB, free: 4.281 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0003117/0.2759, allocations: 255.5 kB / 1.169 GB, free: 4.031 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001553/0.276, allocations: 77.75 kB / 1.169 GB, free: 3.957 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001444/0.2762, allocations: 111.7 kB / 1.17 GB, free: 3.848 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002063/0.2764, allocations: 159.4 kB / 1.17 GB, free: 3.691 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.859e-05/0.2764, allocations: 20 kB / 1.17 GB, free: 3.672 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001585/0.2766, allocations: 91.92 kB / 1.17 GB, free: 3.582 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 7.881e-05/0.2767, allocations: 55.83 kB / 1.17 GB, free: 3.527 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001166/0.2768, allocations: 115.3 kB / 1.17 GB, free: 3.414 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003895/0.2772, allocations: 306.8 kB / 1.17 GB, free: 3.113 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.2772, allocations: 4 kB / 1.17 GB, free: 3.109 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.193e-06/0.2772, allocations: 0 / 1.17 GB, free: 3.109 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.871e-06/0.2773, allocations: 4 kB / 1.17 GB, free: 3.105 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.0008886/0.2781, allocations: 0.5816 MB / 1.171 GB, free: 2.469 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.2782, allocations: 12.03 kB / 1.171 GB, free: 2.457 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.184e-05/0.2783, allocations: 46.73 kB / 1.171 GB, free: 2.402 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.245e-05/0.2783, allocations: 36.69 kB / 1.171 GB, free: 2.367 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005163/0.2788, allocations: 307 kB / 1.171 GB, free: 2.031 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.441e-05/0.2789, allocations: 12.38 kB / 1.171 GB, free: 2.02 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.054e-05/0.2789, allocations: 12.38 kB / 1.171 GB, free: 2.008 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004098/0.2793, allocations: 227.6 kB / 1.171 GB, free: 1.762 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.2794, allocations: 0 / 1.171 GB, free: 1.762 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.097e-05/0.2794, allocations: 8 kB / 1.171 GB, free: 1.754 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.638e-06/0.2794, allocations: 0 / 1.171 GB, free: 1.754 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002652/0.2797, allocations: 128.3 kB / 1.172 GB, free: 1.629 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008765/0.2805, allocations: 0.6886 MB / 1.172 GB, free: 0.8828 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003848/0.2809, allocations: 166.7 kB / 1.172 GB, free: 0.7109 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001731/0.2811, allocations: 92.83 kB / 1.172 GB, free: 0.6172 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.759e-05/0.2812, allocations: 8 kB / 1.172 GB, free: 0.6094 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002971/0.2815, allocations: 182.9 kB / 1.173 GB, free: 424 kB / 0.92 GB Notification: Performance of pre-optimization done (n=15): time 1.503e-06/0.2815, allocations: 0 / 1.173 GB, free: 424 kB / 0.92 GB Notification: Performance of matching and sorting (n=15): time 0.0007194/0.2822, allocations: 367 kB / 1.173 GB, free: 44 kB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.2823, allocations: 136.5 kB / 1.173 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003029/0.2826, allocations: 286.6 kB / 1.173 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.062e-05/0.2827, allocations: 37.64 kB / 1.173 GB, free: 15.55 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001268/0.2828, allocations: 152.3 kB / 1.174 GB, free: 15.39 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.347e-05/0.2828, allocations: 43.69 kB / 1.174 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.788e-05/0.2829, allocations: 41.7 kB / 1.174 GB, free: 15.3 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000158/0.2831, allocations: 338.8 kB / 1.174 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000183/0.2833, allocations: 87.95 kB / 1.174 GB, free: 14.88 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002082/0.2835, allocations: 133.1 kB / 1.174 GB, free: 14.73 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003594/0.2839, allocations: 238.7 kB / 1.174 GB, free: 14.47 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.2839, allocations: 7.938 kB / 1.174 GB, free: 14.46 MB / 0.9356 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005401/0.2844, allocations: 341.3 kB / 1.175 GB, free: 14.12 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.722e-05/0.2845, allocations: 41.69 kB / 1.175 GB, free: 14.08 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.2845, allocations: 0 / 1.175 GB, free: 14.08 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.2845, allocations: 96 / 1.175 GB, free: 14.08 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000134/0.2847, allocations: 31.86 kB / 1.175 GB, free: 14.05 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.2847, allocations: 0 / 1.175 GB, free: 14.05 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001293/0.2848, allocations: 31.97 kB / 1.175 GB, free: 14.02 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.745e-05/0.2848, allocations: 4 kB / 1.175 GB, free: 14.01 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.0001916/0.285, allocations: 192.9 kB / 1.175 GB, free: 13.81 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.903e-05/0.2851, allocations: 27.8 kB / 1.175 GB, free: 13.78 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.043e-05/0.2851, allocations: 33.83 kB / 1.175 GB, free: 13.75 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.678e-06/0.2851, allocations: 4 kB / 1.175 GB, free: 13.74 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.2852, allocations: 0 / 1.175 GB, free: 13.74 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.2852, allocations: 4 kB / 1.175 GB, free: 13.74 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002842/0.2855, allocations: 297.3 kB / 1.175 GB, free: 13.4 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.2855, allocations: 0 / 1.175 GB, free: 13.4 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001142/0.2856, allocations: 15.98 kB / 1.175 GB, free: 13.38 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.2856, allocations: 4 kB / 1.175 GB, free: 13.38 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.647e-05/0.2856, allocations: 0 / 1.175 GB, free: 13.38 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.2856, allocations: 4 kB / 1.175 GB, free: 13.38 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2856, allocations: 0 / 1.175 GB, free: 13.38 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007635/0.2864, allocations: 473.1 kB / 1.176 GB, free: 12.89 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 7.479e-05/0.2865, allocations: 104.9 kB / 1.176 GB, free: 12.77 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.139e-05/0.2865, allocations: 8 kB / 1.176 GB, free: 12.76 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.2866, allocations: 11.98 kB / 1.176 GB, free: 12.75 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.206e-05/0.2867, allocations: 23.95 kB / 1.176 GB, free: 12.73 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.247e-05/0.2868, allocations: 8 kB / 1.176 GB, free: 12.72 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001984/0.287, allocations: 198 kB / 1.176 GB, free: 12.53 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.944e-06/0.287, allocations: 8.062 kB / 1.176 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002837/0.2873, allocations: 63.8 kB / 1.176 GB, free: 12.46 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.001151/0.2884, allocations: 1.024 MB / 1.177 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004999/0.2889, allocations: 295.2 kB / 1.178 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2889, allocations: 0 / 1.178 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002568/0.2892, allocations: 183.3 kB / 1.178 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000309/0.2895, allocations: 42.88 kB / 1.178 GB, free: 10.87 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003708/0.2932, allocations: 2.787 MB / 1.181 GB, free: 7.973 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003901/0.2937, allocations: 0.7514 MB / 1.181 GB, free: 7.195 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 8.402e-05/0.2937, allocations: 21.53 kB / 1.181 GB, free: 7.176 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001119/0.2939, allocations: 71.42 kB / 1.181 GB, free: 7.105 MB / 0.9356 GB Notification: Performance of SimCode: time 3.31e-07/0.2939, allocations: 0 / 1.181 GB, free: 7.105 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02898/0.3229, allocations: 5.402 MB / 1.187 GB, free: 1.812 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.212/8.535, allocations: 16.47 kB / 1.187 GB, free: 1.801 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 & python3 -m fmpy simulate --output-file Buildings_10_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_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.csv","/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