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.0016/0.0016, allocations: 100 kB / 21.18 MB, free: 0.6484 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.001705/0.001705, allocations: 184.9 kB / 24.45 MB, free: 3.961 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.447/1.447, allocations: 225.7 MB / 253.3 MB, free: 12.8 MB / 206.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.001622/0.001622, allocations: 51.91 kB / 371.6 MB, free: 9.195 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2609, allocations: 52.18 MB / 423.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.00349/0.2644, allocations: 1.971 MB / 425.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00088/0.2653, allocations: 490.7 kB / 426.3 MB, free: 12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.091e-05/0.2654, allocations: 3.938 kB / 426.3 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001154/0.2655, allocations: 19.8 kB / 426.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.681e-05/0.2656, allocations: 19.78 kB / 426.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002921/0.2659, allocations: 59.88 kB / 426.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001847/0.2661, allocations: 115.6 kB / 426.5 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001425/0.2662, allocations: 49.25 kB / 426.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.534e-05/0.2663, allocations: 47.8 kB / 426.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.972e-05/0.2664, allocations: 55.69 kB / 426.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.382e-05/0.2664, allocations: 8 kB / 426.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.3e-05/0.2664, allocations: 12 kB / 426.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.279e-05/0.2665, allocations: 23.92 kB / 426.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.191e-05/0.2665, allocations: 47.73 kB / 426.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001976/0.2667, allocations: 126.5 kB / 426.8 MB, free: 11.42 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2667, allocations: 0 / 426.8 MB, free: 11.42 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2667, allocations: 0 / 426.8 MB, free: 11.42 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.2667, allocations: 3.938 kB / 426.8 MB, free: 11.41 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.0005941/0.2673, allocations: 361.8 kB / 427.2 MB, free: 11.03 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.2674, allocations: 8.031 kB / 427.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.911e-05/0.2674, allocations: 16.84 kB / 427.2 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000266/0.2677, allocations: 146.3 kB / 427.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.413e-05/0.2677, allocations: 8.375 kB / 427.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.405e-05/0.2677, allocations: 12.38 kB / 427.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004875/0.2682, allocations: 241.2 kB / 427.6 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.2682, allocations: 3.953 kB / 427.6 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.924e-05/0.2682, allocations: 8 kB / 427.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.209e-06/0.2683, allocations: 0 / 427.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002495/0.2685, allocations: 91.86 kB / 427.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006006/0.2691, allocations: 492.4 kB / 428.2 MB, free: 9.934 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002803/0.2694, allocations: 143.8 kB / 428.3 MB, free: 9.766 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001582/0.2695, allocations: 74.62 kB / 428.4 MB, free: 9.684 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.202e-05/0.2696, allocations: 4 kB / 428.4 MB, free: 9.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.393e-05/0.2696, allocations: 38.56 kB / 428.4 MB, free: 9.633 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.263e-06/0.2696, allocations: 0 / 428.4 MB, free: 9.633 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005239/0.2701, allocations: 177.4 kB / 428.6 MB, free: 9.453 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.734e-05/0.2702, allocations: 114.8 kB / 428.7 MB, free: 9.316 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001184/0.2703, allocations: 134 kB / 428.9 MB, free: 9.172 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.184e-05/0.2704, allocations: 25.7 kB / 428.9 MB, free: 9.141 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.417e-05/0.2704, allocations: 112.1 kB / 429 MB, free: 9.027 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.778e-05/0.2705, allocations: 31.72 kB / 429 MB, free: 8.996 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.972e-05/0.2705, allocations: 33.72 kB / 429.1 MB, free: 8.957 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.2707, allocations: 322.8 kB / 429.4 MB, free: 8.633 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001126/0.2708, allocations: 35.97 kB / 429.4 MB, free: 8.598 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001808/0.2709, allocations: 133 kB / 429.5 MB, free: 8.422 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002991/0.2712, allocations: 176.7 kB / 429.7 MB, free: 8.203 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.726e-06/0.2712, allocations: 0 / 429.7 MB, free: 8.203 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003695/0.2716, allocations: 189.2 kB / 429.9 MB, free: 8.012 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.2716, allocations: 8 kB / 429.9 MB, free: 8.004 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/0.2716, allocations: 3.984 kB / 429.9 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.32e-05/0.2717, allocations: 11.94 kB / 429.9 MB, free: 7.988 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001772/0.2718, allocations: 47.91 kB / 430 MB, free: 7.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/0.2719, allocations: 7.938 kB / 430 MB, free: 7.934 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.272, allocations: 24.31 kB / 430 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.629e-05/0.272, allocations: 12 kB / 430 MB, free: 7.898 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.0001048/0.2721, allocations: 125.8 kB / 430.1 MB, free: 7.766 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001459/0.2722, allocations: 81.95 kB / 430.2 MB, free: 7.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.871e-05/0.2723, allocations: 16.7 kB / 430.2 MB, free: 7.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.822e-06/0.2723, allocations: 7.938 kB / 430.2 MB, free: 7.652 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.2723, allocations: 7.938 kB / 430.2 MB, free: 7.645 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.211e-06/0.2723, allocations: 4 kB / 430.3 MB, free: 7.641 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002241/0.2725, allocations: 133.2 kB / 430.4 MB, free: 7.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2725, allocations: 0 / 430.4 MB, free: 7.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001662/0.2727, allocations: 31.98 kB / 430.4 MB, free: 7.449 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.2727, allocations: 4 kB / 430.4 MB, free: 7.445 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.686e-05/0.2727, allocations: 7.984 kB / 430.4 MB, free: 7.438 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.2727, allocations: 0 / 430.4 MB, free: 7.438 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.2727, allocations: 7.938 kB / 430.4 MB, free: 7.43 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005449/0.2733, allocations: 371.7 kB / 430.8 MB, free: 7.047 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.128e-05/0.2733, allocations: 11.92 kB / 430.8 MB, free: 7.035 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.337e-05/0.2733, allocations: 4.062 kB / 430.8 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001368/0.2734, allocations: 19.97 kB / 430.8 MB, free: 7.012 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.88e-05/0.2735, allocations: 7.922 kB / 430.8 MB, free: 7.004 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.144e-05/0.2735, allocations: 8 kB / 430.8 MB, free: 6.996 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.855e-05/0.2736, allocations: 98.78 kB / 430.9 MB, free: 6.902 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2736, allocations: 0 / 430.9 MB, free: 6.902 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003267/0.2739, allocations: 31.89 kB / 431 MB, free: 6.871 MB / 334.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.0001196/0.274, allocations: 107.2 kB / 431.1 MB, free: 6.758 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003278/0.2743, allocations: 115.8 kB / 431.2 MB, free: 6.645 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2743, allocations: 0 / 431.2 MB, free: 6.645 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.827e-05/0.2744, allocations: 27.92 kB / 431.2 MB, free: 6.617 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004865/0.2749, allocations: 48.88 kB / 431.3 MB, free: 6.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007721/0.2757, allocations: 423.9 kB / 431.7 MB, free: 6.117 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.736e-05/0.2758, allocations: 97.62 kB / 431.8 MB, free: 6.004 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.355e-05/0.2758, allocations: 19.42 kB / 431.8 MB, free: 5.984 MB / 334.1 MB Notification: Performance of SimCode: time 7.21e-07/0.2758, allocations: 0 / 431.8 MB, free: 5.984 MB / 334.1 MB Notification: Performance of Templates: time 0.003552/0.2794, allocations: 1.557 MB / 433.4 MB, free: 4.445 MB / 334.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 -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: 6.902357887942344]