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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mot.y|mot.uppHys.y|mot.delta|ySet.y|mot.lowHys.u|mot.lowHys.y|mot.uppHys.u",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mot.y|mot.uppHys.y|mot.delta|ySet.y|mot.lowHys.u|mot.lowHys.y|mot.uppHys.u",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001548/0.001548, allocations: 112.6 kB / 16.37 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.001745/0.001746, allocations: 196 kB / 17.31 MB, free: 5.613 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.434/1.434, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.278/2.278, allocations: 390.3 MB / 0.6655 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 63.56 kB / 0.814 GB, free: 32.64 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2789/0.2803, allocations: 140.4 MB / 0.9511 GB, free: 8.082 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003313/0.2836, allocations: 1.957 MB / 0.953 GB, free: 6.113 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001166/0.2848, allocations: 0.7129 MB / 0.9537 GB, free: 5.395 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.622e-05/0.2849, allocations: 11.94 kB / 0.9537 GB, free: 5.383 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002393/0.2852, allocations: 83.62 kB / 0.9538 GB, free: 5.301 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001153/0.2853, allocations: 87.64 kB / 0.9539 GB, free: 5.215 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005426/0.2858, allocations: 183.7 kB / 0.9541 GB, free: 5.035 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002859/0.2861, allocations: 263.4 kB / 0.9543 GB, free: 4.777 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001599/0.2863, allocations: 73.81 kB / 0.9544 GB, free: 4.707 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001353/0.2865, allocations: 119.6 kB / 0.9545 GB, free: 4.59 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001875/0.2866, allocations: 151.5 kB / 0.9547 GB, free: 4.441 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.484e-05/0.2867, allocations: 24 kB / 0.9547 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001399/0.2868, allocations: 87.94 kB / 0.9548 GB, free: 4.332 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 8.236e-05/0.2869, allocations: 67.7 kB / 0.9548 GB, free: 4.266 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001041/0.287, allocations: 99.41 kB / 0.9549 GB, free: 4.168 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003495/0.2874, allocations: 307 kB / 0.9552 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2874, allocations: 0 / 0.9552 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.553e-06/0.2874, allocations: 0 / 0.9552 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.562e-06/0.2874, allocations: 4 kB / 0.9552 GB, free: 3.863 MB / 0.7325 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.0007858/0.2882, allocations: 0.578 MB / 0.9558 GB, free: 3.23 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.2883, allocations: 8.031 kB / 0.9558 GB, free: 3.223 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.187e-05/0.2883, allocations: 28.66 kB / 0.9558 GB, free: 3.195 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004952/0.2888, allocations: 310.8 kB / 0.9561 GB, free: 2.852 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.423e-05/0.2889, allocations: 16.38 kB / 0.9561 GB, free: 2.836 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.261e-05/0.2889, allocations: 12.38 kB / 0.9561 GB, free: 2.824 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003804/0.2893, allocations: 227.2 kB / 0.9564 GB, free: 2.578 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.2893, allocations: 0 / 0.9564 GB, free: 2.578 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.949e-05/0.2893, allocations: 4 kB / 0.9564 GB, free: 2.574 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.2893, allocations: 8 kB / 0.9564 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002416/0.2896, allocations: 128.4 kB / 0.9565 GB, free: 2.441 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008242/0.2904, allocations: 0.6808 MB / 0.9572 GB, free: 1.703 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003382/0.2908, allocations: 166.6 kB / 0.9573 GB, free: 1.531 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001582/0.2909, allocations: 104.9 kB / 0.9574 GB, free: 1.426 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.993e-05/0.291, allocations: 0 / 0.9574 GB, free: 1.426 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002666/0.2912, allocations: 177 kB / 0.9576 GB, free: 1.234 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=15): time 1.372e-06/0.2913, allocations: 0 / 0.9576 GB, free: 1.234 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15): time 0.0006746/0.2919, allocations: 370.8 kB / 0.9579 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.002e-05/0.292, allocations: 136.5 kB / 0.9581 GB, free: 0.6953 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002591/0.2923, allocations: 278.7 kB / 0.9583 GB, free: 420 kB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.497e-05/0.2923, allocations: 29.8 kB / 0.9584 GB, free: 384 kB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.2924, allocations: 164.1 kB / 0.9585 GB, free: 216 kB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.921e-05/0.2925, allocations: 51.44 kB / 0.9586 GB, free: 164 kB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.959e-05/0.2926, allocations: 41.7 kB / 0.9586 GB, free: 116 kB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001326/0.2927, allocations: 338.8 kB / 0.9589 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001568/0.2929, allocations: 87.89 kB / 0.959 GB, free: 15.69 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000171/0.2931, allocations: 129.1 kB / 0.9591 GB, free: 15.54 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003068/0.2934, allocations: 244.6 kB / 0.9594 GB, free: 15.28 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.2934, allocations: 0 / 0.9594 GB, free: 15.28 MB / 0.7481 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004575/0.2939, allocations: 345 kB / 0.9597 GB, free: 14.93 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.973e-05/0.2939, allocations: 41.69 kB / 0.9597 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.2939, allocations: 0 / 0.9597 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.2939, allocations: 4 kB / 0.9598 GB, free: 14.88 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000119/0.2941, allocations: 19.98 kB / 0.9598 GB, free: 14.86 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.036e-06/0.2941, allocations: 4 kB / 0.9598 GB, free: 14.86 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001096/0.2942, allocations: 23.83 kB / 0.9598 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.168e-05/0.2942, allocations: 8 kB / 0.9598 GB, free: 14.83 MB / 0.7481 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.0001678/0.2944, allocations: 201.3 kB / 0.96 GB, free: 14.62 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.097e-05/0.2944, allocations: 23.72 kB / 0.96 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.061e-05/0.2945, allocations: 29.83 kB / 0.96 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.2945, allocations: 4 kB / 0.9601 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.2945, allocations: 0 / 0.9601 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.2945, allocations: 0 / 0.9601 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002513/0.2948, allocations: 285.5 kB / 0.9603 GB, free: 14.24 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.2948, allocations: 3.938 kB / 0.9603 GB, free: 14.23 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.632e-05/0.2949, allocations: 12 kB / 0.9603 GB, free: 14.22 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.2949, allocations: 4 kB / 0.9603 GB, free: 14.22 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.135e-05/0.2949, allocations: 7.984 kB / 0.9603 GB, free: 14.21 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.2949, allocations: 0 / 0.9603 GB, free: 14.21 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.2949, allocations: 0 / 0.9603 GB, free: 14.21 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006713/0.2956, allocations: 481.3 kB / 0.9608 GB, free: 13.72 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 6.859e-05/0.2957, allocations: 96.84 kB / 0.9609 GB, free: 13.61 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.066e-05/0.2957, allocations: 12.06 kB / 0.9609 GB, free: 13.59 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.871e-05/0.2958, allocations: 15.98 kB / 0.9609 GB, free: 13.58 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.087e-05/0.2959, allocations: 27.95 kB / 0.961 GB, free: 13.55 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.506e-05/0.296, allocations: 11.98 kB / 0.961 GB, free: 13.54 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001659/0.2961, allocations: 202 kB / 0.9612 GB, free: 13.34 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2961, allocations: 0 / 0.9612 GB, free: 13.34 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002626/0.2964, allocations: 51.94 kB / 0.9612 GB, free: 13.29 MB / 0.7481 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.0002243/0.2966, allocations: 146.5 kB / 0.9613 GB, free: 13.14 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0005083/0.2972, allocations: 287.3 kB / 0.9616 GB, free: 12.85 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2972, allocations: 3.938 kB / 0.9616 GB, free: 12.84 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002161/0.2974, allocations: 187.3 kB / 0.9618 GB, free: 12.65 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002987/0.2977, allocations: 32.73 kB / 0.9618 GB, free: 12.62 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009515/0.2987, allocations: 485.1 kB / 0.9623 GB, free: 12.12 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004248/0.2991, allocations: 0.7475 MB / 0.963 GB, free: 11.34 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001373/0.2992, allocations: 17.55 kB / 0.963 GB, free: 11.32 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.64e-05/0.2993, allocations: 23.44 kB / 0.9631 GB, free: 11.3 MB / 0.7481 GB Notification: Performance of SimCode: time 3.11e-07/0.2993, allocations: 0 / 0.9631 GB, free: 11.3 MB / 0.7481 GB Notification: Performance of Templates: time 0.006825/0.3061, allocations: 2.822 MB / 0.9658 GB, free: 8.496 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (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 & ./Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > 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