Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.00151/0.00151, allocations: 107.6 kB / 21.19 MB, free: 0.6484 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.001747/0.001747, allocations: 213.1 kB / 24.48 MB, free: 3.961 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.429/1.429, allocations: 230.6 MB / 258.3 MB, free: 7.781 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.ExactlyClockedWithDiscreteController,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.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.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001648/0.001648, allocations: 47.92 kB / 378.9 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2561/0.2578, allocations: 53.37 MB / 432.3 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.0038/0.2616, allocations: 2.008 MB / 434.3 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001326/0.2629, allocations: 0.5726 MB / 434.9 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001704/0.2631, allocations: 7.938 kB / 434.9 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001624/0.2632, allocations: 15.8 kB / 434.9 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002166/0.2635, allocations: 35.72 kB / 435 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003805/0.2638, allocations: 79.72 kB / 435 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002133/0.2641, allocations: 119.6 kB / 435.1 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001804/0.2642, allocations: 45.72 kB / 435.2 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001116/0.2643, allocations: 59.7 kB / 435.3 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001054/0.2645, allocations: 59.7 kB / 435.3 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.952e-05/0.2645, allocations: 16 kB / 435.3 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.527e-05/0.2645, allocations: 8 kB / 435.3 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.788e-05/0.2646, allocations: 31.92 kB / 435.4 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.51e-05/0.2646, allocations: 59.66 kB / 435.4 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000273/0.2649, allocations: 138.4 kB / 435.6 MB, free: 3.441 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.2649, allocations: 0 / 435.6 MB, free: 3.441 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2649, allocations: 3.938 kB / 435.6 MB, free: 3.438 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.2649, allocations: 0 / 435.6 MB, free: 3.438 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.0006839/0.2656, allocations: 385.5 kB / 435.9 MB, free: 3.031 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.2657, allocations: 12.03 kB / 436 MB, free: 3.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.417e-05/0.2657, allocations: 20.8 kB / 436 MB, free: 3 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000323/0.266, allocations: 166.2 kB / 436.1 MB, free: 2.812 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.675e-05/0.2661, allocations: 8.375 kB / 436.1 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.871e-05/0.2661, allocations: 16.38 kB / 436.2 MB, free: 2.789 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005545/0.2666, allocations: 254.3 kB / 436.4 MB, free: 2.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.757e-05/0.2667, allocations: 4 kB / 436.4 MB, free: 2.516 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.2667, allocations: 0 / 436.4 MB, free: 2.516 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.2667, allocations: 4 kB / 436.4 MB, free: 2.512 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002584/0.2669, allocations: 91.86 kB / 436.5 MB, free: 2.422 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006768/0.2676, allocations: 0.4964 MB / 437 MB, free: 1.875 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003841/0.268, allocations: 139.9 kB / 437.1 MB, free: 1.711 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001746/0.2682, allocations: 78.56 kB / 437.2 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.808e-05/0.2682, allocations: 0 / 437.2 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.203e-05/0.2682, allocations: 34.56 kB / 437.2 MB, free: 1.582 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.333e-06/0.2682, allocations: 0 / 437.2 MB, free: 1.582 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005633/0.2688, allocations: 189.4 kB / 437.4 MB, free: 1.391 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.647e-05/0.2689, allocations: 118.9 kB / 437.5 MB, free: 1.25 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001631/0.2691, allocations: 154.2 kB / 437.7 MB, free: 1.09 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.863e-05/0.2691, allocations: 29.7 kB / 437.7 MB, free: 1.055 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.434e-05/0.2692, allocations: 116.5 kB / 437.8 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.228e-05/0.2692, allocations: 27.78 kB / 437.9 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.736e-05/0.2693, allocations: 37.7 kB / 437.9 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.2694, allocations: 326.8 kB / 438.2 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001221/0.2695, allocations: 31.98 kB / 438.3 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002003/0.2697, allocations: 134.1 kB / 438.4 MB, free: 336 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003203/0.2701, allocations: 189.5 kB / 438.6 MB, free: 96 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.664e-06/0.2701, allocations: 8 kB / 438.6 MB, free: 88 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004183/0.2705, allocations: 205.2 kB / 438.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.2705, allocations: 7.938 kB / 438.8 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.946e-06/0.2705, allocations: 4 kB / 438.8 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.087e-05/0.2705, allocations: 7.938 kB / 438.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001794/0.2707, allocations: 47.91 kB / 438.8 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.2707, allocations: 4 kB / 438.8 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001109/0.2708, allocations: 20.3 kB / 438.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.498e-05/0.2709, allocations: 16 kB / 438.9 MB, free: 15.77 MB / 350.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.0001363/0.271, allocations: 133.8 kB / 439 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001756/0.2712, allocations: 97.47 kB / 439.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.614e-05/0.2712, allocations: 20.7 kB / 439.1 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.2712, allocations: 4 kB / 439.1 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.2713, allocations: 0 / 439.1 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.2713, allocations: 0 / 439.1 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002612/0.2715, allocations: 141.2 kB / 439.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.2715, allocations: 4 kB / 439.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001973/0.2717, allocations: 39.92 kB / 439.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.203e-06/0.2717, allocations: 7.938 kB / 439.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.2717, allocations: 0 / 439.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.048e-06/0.2717, allocations: 4 kB / 439.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.2717, allocations: 3.984 kB / 439.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005682/0.2723, allocations: 371.5 kB / 439.7 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.224e-05/0.2724, allocations: 36.02 kB / 439.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.627e-05/0.2724, allocations: 11.94 kB / 439.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001376/0.2726, allocations: 12.05 kB / 439.8 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.211e-05/0.2726, allocations: 11.97 kB / 439.8 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.093e-05/0.2726, allocations: 8 kB / 439.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.71e-05/0.2727, allocations: 112.1 kB / 439.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2727, allocations: 0 / 439.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003448/0.273, allocations: 31.95 kB / 439.9 MB, free: 14.68 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.0001208/0.2732, allocations: 103.2 kB / 440 MB, free: 14.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003423/0.2735, allocations: 123.7 kB / 440.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2735, allocations: 0 / 440.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.957e-05/0.2736, allocations: 27.92 kB / 440.2 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005404/0.2742, allocations: 69.89 kB / 440.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008715/0.275, allocations: 456 kB / 440.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001338/0.2752, allocations: 110.6 kB / 440.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.745e-05/0.2752, allocations: 15.44 kB / 440.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2752, allocations: 0 / 440.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of Templates: time 0.003957/0.2792, allocations: 1.68 MB / 442.5 MB, free: 12.06 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 6.982882957963739]