Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.001895/0.001895, allocations: 73.64 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.00218/0.00218, allocations: 150.2 kB / 24.49 MB, free: 3.723 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.442/1.442, allocations: 173.4 MB / 201.1 MB, free: 12.67 MB / 190.1 MB " [Timeout remaining time 178] 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.ClockedWithDiscreteTextbookController,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.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,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.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001704/0.001704, allocations: 46.61 kB / 319.4 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09461/0.09631, allocations: 52.17 MB / 371.6 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003735/0.1, allocations: 1.963 MB / 373.5 MB, free: 5.363 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001017/0.1011, allocations: 482.8 kB / 374 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001376/0.1012, allocations: 7.938 kB / 374 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001166/0.1013, allocations: 19.73 kB / 374 MB, free: 4.859 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.806e-05/0.1014, allocations: 27.78 kB / 374 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003569/0.1018, allocations: 63.86 kB / 374.1 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002098/0.102, allocations: 115.6 kB / 374.2 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001508/0.1021, allocations: 37.61 kB / 374.3 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001046/0.1022, allocations: 55.72 kB / 374.3 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.554e-05/0.1023, allocations: 47.77 kB / 374.4 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.509e-05/0.1024, allocations: 8 kB / 374.4 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.285e-05/0.1024, allocations: 12 kB / 374.4 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.485e-05/0.1024, allocations: 23.92 kB / 374.4 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.638e-05/0.1025, allocations: 47.73 kB / 374.4 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002315/0.1027, allocations: 135.4 kB / 374.6 MB, free: 4.289 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.1027, allocations: 4 kB / 374.6 MB, free: 4.285 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1027, allocations: 0 / 374.6 MB, free: 4.285 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.1027, allocations: 0 / 374.6 MB, free: 4.285 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0006231/0.1033, allocations: 353.7 kB / 374.9 MB, free: 3.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.1034, allocations: 8.922 kB / 374.9 MB, free: 3.902 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.248e-05/0.1034, allocations: 20.84 kB / 375 MB, free: 3.883 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002898/0.1037, allocations: 142.3 kB / 375.1 MB, free: 3.719 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.518e-05/0.1037, allocations: 12.38 kB / 375.1 MB, free: 3.707 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.279e-05/0.1038, allocations: 12.38 kB / 375.1 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005118/0.1043, allocations: 238.9 kB / 375.4 MB, free: 3.438 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.824e-05/0.1043, allocations: 3.953 kB / 375.4 MB, free: 3.434 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.793e-05/0.1043, allocations: 8 kB / 375.4 MB, free: 3.426 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.1043, allocations: 3.938 kB / 375.4 MB, free: 3.422 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002707/0.1046, allocations: 91.88 kB / 375.5 MB, free: 3.332 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006389/0.1052, allocations: 492.5 kB / 375.9 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003161/0.1056, allocations: 147.9 kB / 376.1 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001653/0.1057, allocations: 70.62 kB / 376.2 MB, free: 2.555 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.821e-05/0.1057, allocations: 4 kB / 376.2 MB, free: 2.551 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.138e-05/0.1058, allocations: 38.56 kB / 376.2 MB, free: 2.504 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.483e-06/0.1058, allocations: 4 kB / 376.2 MB, free: 2.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005322/0.1063, allocations: 177.3 kB / 376.4 MB, free: 2.32 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.123e-05/0.1064, allocations: 114.8 kB / 376.5 MB, free: 2.184 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001163/0.1065, allocations: 130.1 kB / 376.6 MB, free: 2.043 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.966e-05/0.1065, allocations: 25.7 kB / 376.6 MB, free: 2.012 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.64e-05/0.1066, allocations: 116 kB / 376.8 MB, free: 1.895 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.93e-05/0.1066, allocations: 27.78 kB / 376.8 MB, free: 1.867 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.878e-05/0.1067, allocations: 37.84 kB / 376.8 MB, free: 1.824 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.1068, allocations: 322.8 kB / 377.1 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001214/0.107, allocations: 35.97 kB / 377.2 MB, free: 1.465 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001859/0.1072, allocations: 132.1 kB / 377.3 MB, free: 1.293 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003076/0.1075, allocations: 172.7 kB / 377.5 MB, free: 1.078 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1075, allocations: 4 kB / 377.5 MB, free: 1.074 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003869/0.1079, allocations: 189.2 kB / 377.7 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.1079, allocations: 6.812 kB / 377.7 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.1079, allocations: 4.438 kB / 377.7 MB, free: 0.875 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.846e-05/0.1079, allocations: 8 kB / 377.7 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001838/0.1081, allocations: 51.84 kB / 377.7 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.38e-05/0.1081, allocations: 7.938 kB / 377.7 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001108/0.1082, allocations: 23.88 kB / 377.8 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.414e-05/0.1082, allocations: 8 kB / 377.8 MB, free: 0.7773 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.0001198/0.1083, allocations: 129.8 kB / 377.9 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001547/0.1085, allocations: 77.64 kB / 378 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.482e-05/0.1085, allocations: 16.77 kB / 378 MB, free: 0.543 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.1085, allocations: 7.938 kB / 378 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.1086, allocations: 4 kB / 378 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.1086, allocations: 0 / 378 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002435/0.1088, allocations: 145.2 kB / 378.1 MB, free: 368 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.1088, allocations: 3.938 kB / 378.1 MB, free: 364 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001762/0.109, allocations: 27.98 kB / 378.2 MB, free: 336 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.286e-06/0.109, allocations: 7.984 kB / 378.2 MB, free: 328 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.387e-05/0.109, allocations: 4.469 kB / 378.2 MB, free: 324 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.109, allocations: 0 / 378.2 MB, free: 324 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.109, allocations: 7.938 kB / 378.2 MB, free: 316 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006305/0.1096, allocations: 386.6 kB / 378.6 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.525e-05/0.1097, allocations: 7.984 kB / 378.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.224e-05/0.1097, allocations: 4 kB / 378.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001366/0.1098, allocations: 7.984 kB / 378.6 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.426e-05/0.1099, allocations: 11.92 kB / 378.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.347e-05/0.1099, allocations: 12 kB / 378.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.411e-05/0.11, allocations: 95.27 kB / 378.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.11, allocations: 0 / 378.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003388/0.1103, allocations: 31.89 kB / 378.7 MB, free: 15.75 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 (14): * Single equations (assignments): 14 * 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.0001313/0.1104, allocations: 111.5 kB / 378.8 MB, free: 15.63 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003483/0.1108, allocations: 111.8 kB / 378.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.1108, allocations: 0.875 kB / 378.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001046/0.1109, allocations: 31.92 kB / 379 MB, free: 15.49 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000509/0.1114, allocations: 55.92 kB / 379 MB, free: 15.44 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008172/0.1122, allocations: 386.3 kB / 379.4 MB, free: 15.03 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001135/0.1123, allocations: 93.81 kB / 379.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.752e-05/0.1124, allocations: 12.64 kB / 379.5 MB, free: 14.9 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.298e-05/0.1124, allocations: 20.5 kB / 379.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of SimCode: time 6.62e-07/0.1124, allocations: 0 / 379.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of Templates: time 0.004491/0.1169, allocations: 1.237 MB / 380.8 MB, free: 13.7 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.363908239058219]