Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001303/0.001303, allocations: 115 kB / 18.46 MB, free: 4.621 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001382/0.001382, allocations: 207.3 kB / 21.41 MB, free: 1.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.432/1.432, allocations: 230.6 MB / 254.8 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001598/0.001598, allocations: 47.92 kB / 374.1 MB, free: 9.758 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09716/0.09876, allocations: 53.33 MB / 427.5 MB, free: 4.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003763/0.1025, allocations: 2.039 MB / 429.5 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.1037, allocations: 0.5375 MB / 430 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001381/0.1038, allocations: 4 kB / 430 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001239/0.1039, allocations: 15.8 kB / 430 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001048/0.104, allocations: 31.72 kB / 430.1 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000334/0.1044, allocations: 51.89 kB / 430.1 MB, free: 1.645 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002118/0.1046, allocations: 123.5 kB / 430.3 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001546/0.1047, allocations: 45.42 kB / 430.3 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.897e-05/0.1048, allocations: 43.86 kB / 430.3 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.561e-05/0.1049, allocations: 59.69 kB / 430.4 MB, free: 1.375 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.761e-05/0.105, allocations: 12 kB / 430.4 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.149e-05/0.105, allocations: 12 kB / 430.4 MB, free: 1.352 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.791e-05/0.105, allocations: 23.92 kB / 430.4 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.918e-05/0.1051, allocations: 55.67 kB / 430.5 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002169/0.1053, allocations: 131.4 kB / 430.6 MB, free: 1.145 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.1053, allocations: 4 kB / 430.6 MB, free: 1.141 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1053, allocations: 0 / 430.6 MB, free: 1.141 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.1053, allocations: 0 / 430.6 MB, free: 1.141 MB / 350.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.0006636/0.106, allocations: 422.9 kB / 431 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.106, allocations: 12.03 kB / 431.1 MB, free: 0.668 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.242e-05/0.1061, allocations: 16.84 kB / 431.1 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002965/0.1064, allocations: 204.1 kB / 431.3 MB, free: 424 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.1064, allocations: 12.38 kB / 431.3 MB, free: 412 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.072e-05/0.1064, allocations: 16.33 kB / 431.3 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005206/0.107, allocations: 246.5 kB / 431.5 MB, free: 128 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.107, allocations: 0 / 431.5 MB, free: 128 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.752e-05/0.107, allocations: 4 kB / 431.5 MB, free: 124 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.107, allocations: 7.984 kB / 431.6 MB, free: 116 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002696/0.1073, allocations: 87.88 kB / 431.6 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000736/0.108, allocations: 0.5921 MB / 432.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002914/0.1083, allocations: 140 kB / 432.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001768/0.1085, allocations: 82.52 kB / 432.4 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.472e-05/0.1085, allocations: 0 / 432.4 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.376e-05/0.1085, allocations: 42.5 kB / 432.5 MB, free: 15.06 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 8.72e-07/0.1085, allocations: 0 / 432.5 MB, free: 15.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005389/0.1091, allocations: 177.4 kB / 432.7 MB, free: 14.88 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.834e-05/0.1092, allocations: 114.8 kB / 432.8 MB, free: 14.74 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001191/0.1093, allocations: 126.1 kB / 432.9 MB, free: 14.61 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.063e-05/0.1093, allocations: 29.7 kB / 432.9 MB, free: 14.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.187e-05/0.1094, allocations: 115.8 kB / 433 MB, free: 14.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.068e-05/0.1094, allocations: 31.91 kB / 433.1 MB, free: 14.42 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.849e-05/0.1095, allocations: 37.7 kB / 433.1 MB, free: 14.38 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.1096, allocations: 322.8 kB / 433.4 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001305/0.1097, allocations: 39.97 kB / 433.5 MB, free: 14.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001803/0.1099, allocations: 124.9 kB / 433.6 MB, free: 13.85 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003157/0.1102, allocations: 180.6 kB / 433.8 MB, free: 13.62 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.1102, allocations: 0 / 433.8 MB, free: 13.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003966/0.1106, allocations: 193.2 kB / 433.9 MB, free: 13.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.1107, allocations: 8 kB / 434 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.1107, allocations: 4 kB / 434 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.005e-05/0.1107, allocations: 7.938 kB / 434 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001817/0.1109, allocations: 39.92 kB / 434 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/0.1109, allocations: 7.984 kB / 434 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001123/0.111, allocations: 24.33 kB / 434 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.525e-05/0.111, allocations: 8 kB / 434 MB, free: 13.33 MB / 366.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.00011/0.1111, allocations: 133.7 kB / 434.2 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001518/0.1113, allocations: 85.89 kB / 434.3 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.228e-05/0.1113, allocations: 24.64 kB / 434.3 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.1113, allocations: 0 / 434.3 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.1113, allocations: 4 kB / 434.3 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.686e-06/0.1113, allocations: 0 / 434.3 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002823/0.1116, allocations: 201.6 kB / 434.5 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.1116, allocations: 4 kB / 434.5 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001893/0.1118, allocations: 35.98 kB / 434.5 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.1118, allocations: 3.984 kB / 434.5 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.502e-05/0.1118, allocations: 3.938 kB / 434.5 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.1118, allocations: 4 kB / 434.5 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.1118, allocations: 3.938 kB / 434.5 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000552/0.1124, allocations: 367.6 kB / 434.9 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.68e-05/0.1124, allocations: 92.95 kB / 435 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.372e-05/0.1125, allocations: 7.938 kB / 435 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001341/0.1126, allocations: 11.92 kB / 435 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.243e-05/0.1126, allocations: 11.98 kB / 435 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.919e-06/0.1127, allocations: 4 kB / 435 MB, free: 12.24 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.128e-05/0.1127, allocations: 101.4 kB / 435.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1127, allocations: 0 / 435.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003206/0.113, allocations: 24 kB / 435.1 MB, free: 12.12 MB / 366.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.0001146/0.1132, allocations: 107.2 kB / 435.3 MB, free: 12.01 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003444/0.1135, allocations: 116.6 kB / 435.4 MB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1135, allocations: 0 / 435.4 MB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001028/0.1136, allocations: 28.3 kB / 435.4 MB, free: 11.87 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004683/0.1141, allocations: 44.05 kB / 435.4 MB, free: 11.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007503/0.1148, allocations: 431 kB / 435.9 MB, free: 11.36 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003308/0.1152, allocations: 0.7084 MB / 436.6 MB, free: 10.63 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.453e-05/0.1152, allocations: 19.8 kB / 436.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1152, allocations: 0 / 436.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of Templates: time 0.003374/0.1186, allocations: 1.508 MB / 438.1 MB, free: 9.109 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 7.300974019017303]