Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001752/0.001752, allocations: 116.7 kB / 19.18 MB, free: 3.762 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002099/0.002099, allocations: 210.6 kB / 22.13 MB, free: 0.8125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.515/1.515, allocations: 230.2 MB / 255.1 MB, free: 15.24 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001716/0.001716, allocations: 67.89 kB / 374.5 MB, free: 9.902 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1026, allocations: 53.31 MB / 427.8 MB, free: 4.488 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003366/0.1059, allocations: 2.027 MB / 429.8 MB, free: 2.453 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008985/0.1068, allocations: 0.5376 MB / 430.4 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.903e-05/0.1069, allocations: 7.938 kB / 430.4 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.95e-05/0.107, allocations: 15.8 kB / 430.4 MB, free: 1.887 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.661e-05/0.1071, allocations: 23.8 kB / 430.4 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002456/0.1073, allocations: 63.86 kB / 430.5 MB, free: 1.801 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001626/0.1075, allocations: 119.6 kB / 430.6 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.1076, allocations: 37.44 kB / 430.6 MB, free: 1.645 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.481e-05/0.1077, allocations: 51.78 kB / 430.7 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.499e-05/0.1078, allocations: 59.69 kB / 430.7 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.412e-05/0.1078, allocations: 8 kB / 430.8 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.04e-05/0.1078, allocations: 12 kB / 430.8 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.987e-05/0.1078, allocations: 23.92 kB / 430.8 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.574e-05/0.1079, allocations: 59.67 kB / 430.8 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001798/0.1081, allocations: 123.4 kB / 431 MB, free: 1.312 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.1081, allocations: 4 kB / 431 MB, free: 1.309 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.52e-07/0.1081, allocations: 4 kB / 431 MB, free: 1.305 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.698e-06/0.1081, allocations: 3.938 kB / 431 MB, free: 1.301 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.0005675/0.1087, allocations: 426.9 kB / 431.4 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.784e-05/0.1087, allocations: 8.031 kB / 431.4 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.077e-05/0.1087, allocations: 16.84 kB / 431.4 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002305/0.1089, allocations: 211.3 kB / 431.6 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.296e-05/0.109, allocations: 8.375 kB / 431.6 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.16e-05/0.109, allocations: 20.27 kB / 431.7 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004566/0.1095, allocations: 235 kB / 431.9 MB, free: 296 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.1095, allocations: 3.938 kB / 431.9 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.491e-05/0.1095, allocations: 8 kB / 431.9 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.1095, allocations: 4 kB / 431.9 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002526/0.1097, allocations: 83.86 kB / 432 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006524/0.1104, allocations: 0.5921 MB / 432.6 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002842/0.1107, allocations: 143.9 kB / 432.7 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001663/0.1108, allocations: 78.56 kB / 432.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.523e-05/0.1109, allocations: 4 kB / 432.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.912e-05/0.1109, allocations: 30.56 kB / 432.8 MB, free: 15.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 1.303e-06/0.1109, allocations: 0 / 432.8 MB, free: 15.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005404/0.1114, allocations: 181.4 kB / 433 MB, free: 15.05 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.502e-05/0.1115, allocations: 110.8 kB / 433.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001082/0.1116, allocations: 131.2 kB / 433.2 MB, free: 14.77 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.627e-05/0.1117, allocations: 29.7 kB / 433.3 MB, free: 14.74 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.483e-05/0.1117, allocations: 119.8 kB / 433.4 MB, free: 14.62 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.077e-05/0.1118, allocations: 31.91 kB / 433.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.611e-05/0.1118, allocations: 33.7 kB / 433.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.112, allocations: 322.8 kB / 433.8 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001153/0.1121, allocations: 32.34 kB / 433.8 MB, free: 14.19 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001922/0.1123, allocations: 135.6 kB / 433.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003319/0.1126, allocations: 176.7 kB / 434.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.1126, allocations: 4 kB / 434.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003841/0.113, allocations: 193.2 kB / 434.3 MB, free: 13.6 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.113, allocations: 4 kB / 434.3 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.1131, allocations: 7.984 kB / 434.3 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.1131, allocations: 7.938 kB / 434.3 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001731/0.1132, allocations: 43.92 kB / 434.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.278e-06/0.1132, allocations: 7.938 kB / 434.4 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.1134, allocations: 28.31 kB / 434.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.461e-05/0.1134, allocations: 8 kB / 434.4 MB, free: 13.49 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.0001137/0.1135, allocations: 129.7 kB / 434.5 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001597/0.1136, allocations: 77.64 kB / 434.6 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.825e-05/0.1137, allocations: 24.64 kB / 434.6 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.1137, allocations: 4 kB / 434.6 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.1137, allocations: 0 / 434.6 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.1137, allocations: 0 / 434.6 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002876/0.114, allocations: 205.5 kB / 434.8 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.114, allocations: 4 kB / 434.8 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001703/0.1142, allocations: 39.92 kB / 434.9 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.043e-06/0.1142, allocations: 0 / 434.9 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.667e-05/0.1142, allocations: 11.94 kB / 434.9 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.1142, allocations: 3.984 kB / 434.9 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1142, allocations: 0 / 434.9 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005571/0.1147, allocations: 371.5 kB / 435.3 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.678e-05/0.1148, allocations: 92.98 kB / 435.3 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.052e-05/0.1148, allocations: 7.938 kB / 435.3 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001321/0.115, allocations: 11.98 kB / 435.4 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.263e-05/0.115, allocations: 240 / 435.4 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.756e-06/0.115, allocations: 7.938 kB / 435.4 MB, free: 12.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.955e-05/0.1151, allocations: 109.1 kB / 435.5 MB, free: 12.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1151, allocations: 0 / 435.5 MB, free: 12.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003055/0.1154, allocations: 24 kB / 435.5 MB, free: 12.28 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.0001084/0.1155, allocations: 107.2 kB / 435.6 MB, free: 12.17 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003316/0.1158, allocations: 112.6 kB / 435.7 MB, free: 12.06 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.1158, allocations: 0 / 435.7 MB, free: 12.06 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001038/0.1159, allocations: 32 kB / 435.7 MB, free: 12.03 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004265/0.1163, allocations: 47.94 kB / 435.8 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006878/0.117, allocations: 427.1 kB / 436.2 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003274/0.1174, allocations: 0.7123 MB / 436.9 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.033e-05/0.1174, allocations: 19.44 kB / 436.9 MB, free: 10.77 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1174, allocations: 0 / 436.9 MB, free: 10.77 MB / 366.1 MB Notification: Performance of Templates: time 0.003083/0.1205, allocations: 1.508 MB / 438.4 MB, free: 9.266 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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.26448639202863]