Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00126/0.00126, allocations: 69.95 kB / 21.24 MB, free: 0.5547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001312/0.001312, allocations: 152 kB / 24.49 MB, free: 3.727 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 173.4 MB / 201.1 MB, free: 12.69 MB / 190.1 MB " [Timeout remaining time 179] 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(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001567/0.001567, allocations: 47.14 kB / 319.4 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09984/0.1014, allocations: 52.16 MB / 371.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.004181/0.1056, allocations: 1.994 MB / 373.5 MB, free: 5.336 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001081/0.1067, allocations: 0.5377 MB / 374.1 MB, free: 4.793 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001207/0.1068, allocations: 7.938 kB / 374.1 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000118/0.1069, allocations: 19.73 kB / 374.1 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001693/0.1071, allocations: 35.72 kB / 374.1 MB, free: 4.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003098/0.1074, allocations: 79.53 kB / 374.2 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001967/0.1076, allocations: 123.6 kB / 374.3 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001381/0.1077, allocations: 34.12 kB / 374.4 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.686e-05/0.1078, allocations: 59.77 kB / 374.4 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001033/0.1079, allocations: 51.66 kB / 374.5 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.904e-05/0.108, allocations: 12 kB / 374.5 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.303e-05/0.108, allocations: 8 kB / 374.5 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.835e-05/0.108, allocations: 35.84 kB / 374.5 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.82e-05/0.1081, allocations: 55.72 kB / 374.6 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002339/0.1083, allocations: 147.3 kB / 374.7 MB, free: 4.133 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.227e-06/0.1084, allocations: 0 / 374.7 MB, free: 4.133 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1084, allocations: 0 / 374.7 MB, free: 4.133 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.1084, allocations: 0 / 374.7 MB, free: 4.133 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006553/0.109, allocations: 389.5 kB / 375.1 MB, free: 3.723 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.1091, allocations: 8.922 kB / 375.1 MB, free: 3.715 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.957e-05/0.1091, allocations: 20.78 kB / 375.1 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003231/0.1094, allocations: 162.3 kB / 375.3 MB, free: 3.512 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.975e-05/0.1094, allocations: 12.36 kB / 375.3 MB, free: 3.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.747e-05/0.1095, allocations: 24.27 kB / 375.3 MB, free: 3.477 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005509/0.11, allocations: 258.1 kB / 375.6 MB, free: 3.203 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.11, allocations: 0 / 375.6 MB, free: 3.203 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.605e-05/0.1101, allocations: 4 kB / 375.6 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.1101, allocations: 8 kB / 375.6 MB, free: 3.191 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002682/0.1103, allocations: 91.86 kB / 375.7 MB, free: 3.102 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006568/0.111, allocations: 0.4888 MB / 376.2 MB, free: 2.566 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004044/0.1114, allocations: 135.7 kB / 376.3 MB, free: 2.406 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001809/0.1116, allocations: 82.75 kB / 376.4 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.074e-05/0.1116, allocations: 0 / 376.4 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.751e-05/0.1116, allocations: 38.56 kB / 376.4 MB, free: 2.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.223e-06/0.1116, allocations: 0 / 376.4 MB, free: 2.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005437/0.1122, allocations: 181.7 kB / 376.6 MB, free: 2.086 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.972e-05/0.1123, allocations: 122.8 kB / 376.7 MB, free: 1.941 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001555/0.1124, allocations: 158.3 kB / 376.9 MB, free: 1.777 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.11e-05/0.1124, allocations: 33.7 kB / 376.9 MB, free: 1.738 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.787e-05/0.1125, allocations: 108.5 kB / 377 MB, free: 1.629 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.524e-05/0.1125, allocations: 23.97 kB / 377.1 MB, free: 1.605 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.957e-05/0.1126, allocations: 41.67 kB / 377.1 MB, free: 1.559 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.1127, allocations: 330.8 kB / 377.4 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001224/0.1129, allocations: 35.97 kB / 377.4 MB, free: 1.191 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001867/0.1131, allocations: 137.6 kB / 377.6 MB, free: 1.008 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003128/0.1134, allocations: 181.5 kB / 377.8 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.1134, allocations: 8 kB / 377.8 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003917/0.1138, allocations: 201.5 kB / 378 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.1138, allocations: 6.812 kB / 378 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.1138, allocations: 8 kB / 378 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.956e-05/0.1138, allocations: 4 kB / 378 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001602/0.114, allocations: 47.92 kB / 378 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.278e-05/0.114, allocations: 7.984 kB / 378 MB, free: 0.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/0.1141, allocations: 15.89 kB / 378.1 MB, free: 496 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.688e-05/0.1141, allocations: 16 kB / 378.1 MB, free: 480 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * 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.0001185/0.1142, allocations: 133.7 kB / 378.2 MB, free: 336 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001696/0.1144, allocations: 93.75 kB / 378.3 MB, free: 236 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.43e-05/0.1145, allocations: 32.75 kB / 378.3 MB, free: 200 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.1145, allocations: 4 kB / 378.3 MB, free: 196 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.1145, allocations: 0 / 378.3 MB, free: 196 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.1145, allocations: 0 / 378.3 MB, free: 196 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002339/0.1147, allocations: 137.2 kB / 378.5 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.1147, allocations: 4 kB / 378.5 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001918/0.1149, allocations: 31.97 kB / 378.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.684e-05/0.115, allocations: 7.938 kB / 378.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.549e-05/0.115, allocations: 7.938 kB / 378.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/0.115, allocations: 7.984 kB / 378.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.115, allocations: 4 kB / 378.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005747/0.1155, allocations: 383.4 kB / 378.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.098e-05/0.1156, allocations: 35.88 kB / 378.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.37e-05/0.1156, allocations: 7.938 kB / 378.9 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001543/0.1158, allocations: 11.98 kB / 379 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.612e-05/0.1158, allocations: 7.984 kB / 379 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.069e-05/0.1158, allocations: 7.938 kB / 379 MB, free: 15.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.192e-05/0.1159, allocations: 116.1 kB / 379.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1159, allocations: 4.062 kB / 379.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003349/0.1163, allocations: 28 kB / 379.1 MB, free: 15.36 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * 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.0001104/0.1164, allocations: 99.25 kB / 379.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003457/0.1167, allocations: 124.5 kB / 379.3 MB, free: 15.13 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.1167, allocations: 128 / 379.3 MB, free: 15.13 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001013/0.1168, allocations: 31.92 kB / 379.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005255/0.1174, allocations: 56 kB / 379.4 MB, free: 15.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007769/0.1181, allocations: 422.2 kB / 379.8 MB, free: 14.6 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000115/0.1182, allocations: 110.8 kB / 379.9 MB, free: 14.47 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.997e-05/0.1183, allocations: 9.5 kB / 379.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.319e-05/0.1183, allocations: 16.5 kB / 380 MB, free: 14.44 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1183, allocations: 0 / 380 MB, free: 14.44 MB / 350.1 MB Notification: Performance of Templates: time 0.004723/0.1231, allocations: 1.441 MB / 381.4 MB, free: 13.06 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.216125124017708]