Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_latest_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.001614/0.001621, 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.001921/0.001921, allocations: 193.5 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.296/1.296, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.664/2.664, allocations: 469.4 MB / 0.742 GB, free: 7.609 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 65.27 kB / 0.9083 GB, free: 34.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.2526, allocations: 159.1 MB / 1.064 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003363/0.256, allocations: 1.963 MB / 1.066 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001289/0.2574, allocations: 0.7052 MB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001499/0.2575, allocations: 4 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002208/0.2578, allocations: 83.62 kB / 1.066 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001439/0.2579, allocations: 99.56 kB / 1.066 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005886/0.2585, allocations: 182.2 kB / 1.067 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003196/0.2588, allocations: 263.4 kB / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001635/0.259, allocations: 70.11 kB / 1.067 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001601/0.2592, allocations: 111.7 kB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001971/0.2594, allocations: 151.5 kB / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.612e-05/0.2594, allocations: 20 kB / 1.067 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001462/0.2596, allocations: 95.88 kB / 1.067 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.15e-05/0.2597, allocations: 55.77 kB / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.2598, allocations: 111.4 kB / 1.067 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000344/0.2602, allocations: 295.1 kB / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2602, allocations: 0 / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.816e-06/0.2602, allocations: 3.984 kB / 1.068 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.376e-06/0.2602, allocations: 0 / 1.068 GB, free: 10.28 MB / 0.8262 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.0008645/0.2611, allocations: 0.5858 MB / 1.068 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.2611, allocations: 8.031 kB / 1.068 GB, free: 9.633 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.913e-05/0.2612, allocations: 50.67 kB / 1.068 GB, free: 9.574 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.773e-05/0.2612, allocations: 36.5 kB / 1.068 GB, free: 9.539 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004235/0.2617, allocations: 294.9 kB / 1.069 GB, free: 9.215 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.426e-05/0.2617, allocations: 16.38 kB / 1.069 GB, free: 9.199 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.305e-05/0.2617, allocations: 12.38 kB / 1.069 GB, free: 9.188 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003737/0.2621, allocations: 227.6 kB / 1.069 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.2621, allocations: 0 / 1.069 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.03e-05/0.2622, allocations: 8 kB / 1.069 GB, free: 8.934 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.2622, allocations: 0 / 1.069 GB, free: 8.934 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000248/0.2624, allocations: 132.3 kB / 1.069 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008044/0.2632, allocations: 0.6962 MB / 1.07 GB, free: 8.051 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003472/0.2636, allocations: 166.7 kB / 1.07 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001623/0.2638, allocations: 100.8 kB / 1.07 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.519e-05/0.2638, allocations: 0 / 1.07 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002954/0.2641, allocations: 173.1 kB / 1.07 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=15): time 1.493e-06/0.2641, allocations: 0 / 1.07 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15): time 0.0006415/0.2648, allocations: 368.4 kB / 1.071 GB, free: 7.219 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.574e-05/0.2648, allocations: 140.5 kB / 1.071 GB, free: 7.051 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000256/0.2651, allocations: 286.5 kB / 1.071 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.429e-05/0.2651, allocations: 29.7 kB / 1.071 GB, free: 6.734 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.2652, allocations: 156.3 kB / 1.071 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.896e-05/0.2653, allocations: 51.34 kB / 1.071 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.775e-05/0.2654, allocations: 37.72 kB / 1.071 GB, free: 6.484 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000104/0.2655, allocations: 338.8 kB / 1.072 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001662/0.2656, allocations: 87.95 kB / 1.072 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001833/0.2658, allocations: 135.5 kB / 1.072 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003197/0.2662, allocations: 243.8 kB / 1.072 GB, free: 5.648 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.2662, allocations: 0 / 1.072 GB, free: 5.648 MB / 0.8262 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004836/0.2667, allocations: 337.2 kB / 1.072 GB, free: 5.309 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.877e-05/0.2667, allocations: 37.7 kB / 1.072 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.2667, allocations: 0 / 1.072 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.2667, allocations: 4 kB / 1.072 GB, free: 5.262 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.2669, allocations: 23.92 kB / 1.072 GB, free: 5.238 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.2669, allocations: 4 kB / 1.072 GB, free: 5.234 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001237/0.267, allocations: 19.83 kB / 1.072 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.924e-05/0.267, allocations: 12 kB / 1.072 GB, free: 5.203 MB / 0.8262 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.0001609/0.2672, allocations: 199.7 kB / 1.073 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.025e-05/0.2673, allocations: 31.66 kB / 1.073 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.139e-05/0.2673, allocations: 25.83 kB / 1.073 GB, free: 4.941 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.2673, allocations: 96 / 1.073 GB, free: 4.941 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.2673, allocations: 3.938 kB / 1.073 GB, free: 4.938 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.2673, allocations: 4 kB / 1.073 GB, free: 4.934 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002409/0.2676, allocations: 297.3 kB / 1.073 GB, free: 4.594 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.2676, allocations: 0 / 1.073 GB, free: 4.594 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000108/0.2677, allocations: 15.98 kB / 1.073 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.2677, allocations: 4 kB / 1.073 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.805e-05/0.2677, allocations: 4 kB / 1.073 GB, free: 4.57 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.2678, allocations: 4 kB / 1.073 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2678, allocations: 0 / 1.073 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006812/0.2684, allocations: 475.2 kB / 1.073 GB, free: 4.078 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.611e-05/0.2685, allocations: 96.8 kB / 1.073 GB, free: 3.965 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.347e-05/0.2686, allocations: 12.06 kB / 1.073 GB, free: 3.953 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.2687, allocations: 11.98 kB / 1.074 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.092e-05/0.2688, allocations: 27.95 kB / 1.074 GB, free: 3.914 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.007e-05/0.2688, allocations: 8 kB / 1.074 GB, free: 3.906 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001935/0.269, allocations: 198 kB / 1.074 GB, free: 3.711 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.61e-07/0.269, allocations: 0 / 1.074 GB, free: 3.711 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003045/0.2693, allocations: 67.95 kB / 1.074 GB, free: 3.645 MB / 0.8262 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.001013/0.2703, allocations: 1.018 MB / 1.075 GB, free: 2.594 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004637/0.2708, allocations: 303.4 kB / 1.075 GB, free: 2.285 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2708, allocations: 4 kB / 1.075 GB, free: 2.281 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002181/0.271, allocations: 179.4 kB / 1.075 GB, free: 2.094 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002854/0.2713, allocations: 32.55 kB / 1.075 GB, free: 2.062 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003257/0.2746, allocations: 2.765 MB / 1.078 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002639/0.2749, allocations: 0.7514 MB / 1.079 GB, free: 14.42 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 8.723e-05/0.275, allocations: 21.53 kB / 1.079 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.876e-05/0.2751, allocations: 71.36 kB / 1.079 GB, free: 14.33 MB / 0.8419 GB Notification: Performance of SimCode: time 3.11e-07/0.2751, allocations: 4 kB / 1.079 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02229/0.2974, allocations: 5.333 MB / 1.084 GB, free: 9.086 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.348/7.645, allocations: 21.41 kB / 1.084 GB, free: 9.066 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches