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: 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.001118/0.001118, allocations: 102.2 kB / 16.27 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.00107/0.00107, allocations: 193.3 kB / 17.2 MB, free: 5.609 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.352/1.352, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.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.208/2.208, allocations: 390.3 MB / 0.6653 GB, free: 0.7227 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 66.75 kB / 0.8132 GB, free: 33.01 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2825/0.2838, allocations: 140.4 MB / 0.9503 GB, free: 8.902 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004079/0.288, allocations: 1.947 MB / 0.9522 GB, free: 6.934 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001383/0.2894, allocations: 0.7128 MB / 0.9529 GB, free: 6.215 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001938/0.2896, allocations: 4 kB / 0.9529 GB, free: 6.211 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002537/0.2899, allocations: 79.64 kB / 0.9529 GB, free: 6.133 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001831/0.2901, allocations: 91.58 kB / 0.953 GB, free: 6.043 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006778/0.2908, allocations: 199.2 kB / 0.9532 GB, free: 5.852 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003683/0.2911, allocations: 263.2 kB / 0.9535 GB, free: 5.594 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000182/0.2913, allocations: 78.08 kB / 0.9536 GB, free: 5.52 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001961/0.2915, allocations: 115.6 kB / 0.9537 GB, free: 5.406 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000225/0.2918, allocations: 147.5 kB / 0.9538 GB, free: 5.262 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.695e-05/0.2918, allocations: 20 kB / 0.9538 GB, free: 5.242 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001624/0.292, allocations: 95.92 kB / 0.9539 GB, free: 5.148 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 8.611e-05/0.2921, allocations: 51.83 kB / 0.954 GB, free: 5.098 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001163/0.2922, allocations: 111.3 kB / 0.9541 GB, free: 4.988 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003902/0.2926, allocations: 303 kB / 0.9544 GB, free: 4.691 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.2926, allocations: 0 / 0.9544 GB, free: 4.691 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.172e-06/0.2926, allocations: 0 / 0.9544 GB, free: 4.691 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.045e-05/0.2926, allocations: 0 / 0.9544 GB, free: 4.691 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.0009432/0.2936, allocations: 0.5833 MB / 0.9549 GB, free: 4.055 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.2936, allocations: 11.97 kB / 0.9549 GB, free: 4.043 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.368e-05/0.2937, allocations: 28.66 kB / 0.955 GB, free: 4.016 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004534/0.2942, allocations: 298.8 kB / 0.9553 GB, free: 3.68 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.855e-05/0.2942, allocations: 20.38 kB / 0.9553 GB, free: 3.66 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.059e-05/0.2943, allocations: 12.38 kB / 0.9553 GB, free: 3.648 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004078/0.2947, allocations: 223.2 kB / 0.9555 GB, free: 3.406 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.2947, allocations: 4 kB / 0.9555 GB, free: 3.402 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.324e-05/0.2947, allocations: 4 kB / 0.9555 GB, free: 3.398 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.2948, allocations: 4 kB / 0.9555 GB, free: 3.395 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002579/0.295, allocations: 132.4 kB / 0.9556 GB, free: 3.266 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008519/0.2959, allocations: 0.6808 MB / 0.9563 GB, free: 2.527 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003509/0.2962, allocations: 162.5 kB / 0.9565 GB, free: 2.359 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001643/0.2964, allocations: 101 kB / 0.9565 GB, free: 2.258 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.912e-05/0.2965, allocations: 8.031 kB / 0.9566 GB, free: 2.25 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003415/0.2968, allocations: 174.7 kB / 0.9567 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=15): time 3.206e-06/0.2968, allocations: 0 / 0.9567 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15): time 0.0006712/0.2975, allocations: 378.8 kB / 0.9571 GB, free: 1.68 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.587e-05/0.2976, allocations: 136.5 kB / 0.9572 GB, free: 1.516 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002634/0.2978, allocations: 278.7 kB / 0.9575 GB, free: 1.23 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.653e-05/0.2979, allocations: 33.7 kB / 0.9575 GB, free: 1.191 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.298, allocations: 156.1 kB / 0.9577 GB, free: 1.035 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.265e-05/0.298, allocations: 43.45 kB / 0.9577 GB, free: 0.9922 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.016e-05/0.2981, allocations: 41.7 kB / 0.9577 GB, free: 0.9453 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001147/0.2982, allocations: 334.8 kB / 0.9581 GB, free: 0.6094 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001636/0.2984, allocations: 95.89 kB / 0.9582 GB, free: 0.5156 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001789/0.2986, allocations: 126.6 kB / 0.9583 GB, free: 384 kB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003255/0.2989, allocations: 248.7 kB / 0.9585 GB, free: 112 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2989, allocations: 4.031 kB / 0.9585 GB, free: 108 kB / 0.7325 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005072/0.2995, allocations: 334.8 kB / 0.9588 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 4.118e-05/0.2995, allocations: 44.03 kB / 0.9589 GB, free: 15.72 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.2995, allocations: 0 / 0.9589 GB, free: 15.72 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.2995, allocations: 0 / 0.9589 GB, free: 15.72 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001288/0.2997, allocations: 23.98 kB / 0.9589 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.735e-06/0.2997, allocations: 0 / 0.9589 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001297/0.2998, allocations: 27.92 kB / 0.9589 GB, free: 15.67 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.057e-05/0.2999, allocations: 8 kB / 0.9589 GB, free: 15.66 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.0001939/0.3001, allocations: 195.4 kB / 0.9591 GB, free: 15.45 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.439e-05/0.3001, allocations: 23.72 kB / 0.9591 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.834e-05/0.3002, allocations: 29.92 kB / 0.9592 GB, free: 15.41 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.3002, allocations: 7.922 kB / 0.9592 GB, free: 15.4 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.3002, allocations: 0 / 0.9592 GB, free: 15.4 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.3002, allocations: 0 / 0.9592 GB, free: 15.4 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002613/0.3005, allocations: 297.4 kB / 0.9595 GB, free: 15.06 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3005, allocations: 0 / 0.9595 GB, free: 15.06 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001099/0.3006, allocations: 15.98 kB / 0.9595 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.3006, allocations: 7.938 kB / 0.9595 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.672e-05/0.3006, allocations: 0 / 0.9595 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.3006, allocations: 0 / 0.9595 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3006, allocations: 4 kB / 0.9595 GB, free: 15.03 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006945/0.3013, allocations: 484.5 kB / 0.96 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 6.332e-05/0.3014, allocations: 96.86 kB / 0.96 GB, free: 14.42 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.581e-05/0.3015, allocations: 8 kB / 0.9601 GB, free: 14.41 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001047/0.3016, allocations: 11.98 kB / 0.9601 GB, free: 14.4 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.385e-05/0.3017, allocations: 19.97 kB / 0.9601 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.459e-05/0.3017, allocations: 11.98 kB / 0.9601 GB, free: 14.37 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001853/0.3019, allocations: 198 kB / 0.9603 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3019, allocations: 0 / 0.9603 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002918/0.3022, allocations: 64.12 kB / 0.9603 GB, free: 14.12 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.000229/0.3024, allocations: 135.1 kB / 0.9605 GB, free: 13.97 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0005035/0.303, allocations: 299 kB / 0.9608 GB, free: 13.67 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.303, allocations: 0 / 0.9608 GB, free: 13.67 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002273/0.3032, allocations: 195.5 kB / 0.9609 GB, free: 13.47 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003169/0.3035, allocations: 28.55 kB / 0.961 GB, free: 13.44 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001081/0.3046, allocations: 0.5067 MB / 0.9615 GB, free: 12.9 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003396/0.305, allocations: 0.7514 MB / 0.9622 GB, free: 12.12 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.741e-05/0.305, allocations: 23.44 kB / 0.9622 GB, free: 12.1 MB / 0.7481 GB Notification: Performance of SimCode: time 2.3e-07/0.305, allocations: 288 / 0.9622 GB, free: 12.1 MB / 0.7481 GB Notification: Performance of Templates: time 0.005811/0.3109, allocations: 2.985 MB / 0.9651 GB, free: 9.121 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 -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