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.002035/0.002035, allocations: 103.6 kB / 21.19 MB, free: 0.5117 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.002746/0.002746, allocations: 215.6 kB / 24.48 MB, free: 3.832 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.636/1.636, allocations: 230.6 MB / 258.2 MB, free: 7.805 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.001601/0.001601, allocations: 55.92 kB / 379 MB, free: 2.508 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/0.2468, allocations: 53.36 MB / 432.3 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003494/0.2503, allocations: 1.999 MB / 434.3 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001081/0.2513, allocations: 0.5765 MB / 434.9 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.933e-05/0.2514, allocations: 7.938 kB / 434.9 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001069/0.2515, allocations: 19.73 kB / 434.9 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001608/0.2517, allocations: 31.72 kB / 435 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002675/0.252, allocations: 75.05 kB / 435 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001879/0.2522, allocations: 127.5 kB / 435.1 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001276/0.2523, allocations: 45.02 kB / 435.2 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.357e-05/0.2524, allocations: 55.72 kB / 435.2 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.905e-05/0.2525, allocations: 55.69 kB / 435.3 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.71e-05/0.2525, allocations: 12 kB / 435.3 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.333e-05/0.2525, allocations: 8 kB / 435.3 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.87e-05/0.2526, allocations: 31.92 kB / 435.4 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.246e-05/0.2526, allocations: 51.67 kB / 435.4 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002037/0.2528, allocations: 147.1 kB / 435.5 MB, free: 3.504 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2528, allocations: 0 / 435.5 MB, free: 3.504 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2528, allocations: 0 / 435.5 MB, free: 3.504 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.05e-06/0.2528, allocations: 4 kB / 435.6 MB, free: 3.5 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.0006109/0.2535, allocations: 385.5 kB / 435.9 MB, free: 3.094 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.2535, allocations: 8.031 kB / 435.9 MB, free: 3.086 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.591e-05/0.2535, allocations: 20.8 kB / 436 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002826/0.2538, allocations: 163.8 kB / 436.1 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.2538, allocations: 8.375 kB / 436.1 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.903e-05/0.2539, allocations: 16.38 kB / 436.1 MB, free: 2.859 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005236/0.2544, allocations: 254.9 kB / 436.4 MB, free: 2.586 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.2544, allocations: 3.938 kB / 436.4 MB, free: 2.582 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.565e-05/0.2544, allocations: 4 kB / 436.4 MB, free: 2.578 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.2544, allocations: 4 kB / 436.4 MB, free: 2.574 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002625/0.2547, allocations: 91.86 kB / 436.5 MB, free: 2.484 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000619/0.2553, allocations: 0.4925 MB / 437 MB, free: 1.941 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003478/0.2557, allocations: 139.7 kB / 437.1 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001639/0.2558, allocations: 78.75 kB / 437.2 MB, free: 1.691 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.321e-05/0.2558, allocations: 0 / 437.2 MB, free: 1.691 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.026e-05/0.2559, allocations: 42.5 kB / 437.2 MB, free: 1.641 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.082e-06/0.2559, allocations: 0 / 437.2 MB, free: 1.641 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005269/0.2564, allocations: 189.4 kB / 437.4 MB, free: 1.449 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.838e-05/0.2565, allocations: 114.7 kB / 437.5 MB, free: 1.312 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001439/0.2566, allocations: 154.2 kB / 437.7 MB, free: 1.152 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.031e-05/0.2567, allocations: 29.7 kB / 437.7 MB, free: 1.117 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.748e-05/0.2567, allocations: 116.5 kB / 437.8 MB, free: 1 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.826e-05/0.2568, allocations: 27.78 kB / 437.9 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.545e-05/0.2568, allocations: 37.7 kB / 437.9 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.257, allocations: 322.8 kB / 438.2 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001162/0.2571, allocations: 40.05 kB / 438.2 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001991/0.2573, allocations: 140 kB / 438.4 MB, free: 392 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003092/0.2576, allocations: 185.5 kB / 438.6 MB, free: 156 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.2576, allocations: 7.938 kB / 438.6 MB, free: 148 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004009/0.258, allocations: 201.1 kB / 438.8 MB, free: 15.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.258, allocations: 4 kB / 438.8 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-06/0.258, allocations: 4 kB / 438.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.186e-05/0.2581, allocations: 4.469 kB / 438.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000163/0.2582, allocations: 51.91 kB / 438.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.2582, allocations: 4 kB / 438.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001083/0.2583, allocations: 19.89 kB / 438.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.512e-05/0.2584, allocations: 12 kB / 438.9 MB, free: 15.84 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.0001244/0.2585, allocations: 133.8 kB / 439 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001557/0.2586, allocations: 97.47 kB / 439.1 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.558e-05/0.2587, allocations: 20.7 kB / 439.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.2587, allocations: 4.469 kB / 439.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.2587, allocations: 0 / 439.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.2587, allocations: 7.938 kB / 439.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002374/0.2589, allocations: 141.2 kB / 439.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2589, allocations: 0 / 439.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001717/0.2591, allocations: 43.86 kB / 439.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/0.2591, allocations: 7.938 kB / 439.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.151e-05/0.2591, allocations: 0 / 439.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.999e-06/0.2591, allocations: 4 kB / 439.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2591, allocations: 0 / 439.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005492/0.2597, allocations: 382.7 kB / 439.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.352e-05/0.2598, allocations: 31.8 kB / 439.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.5e-05/0.2598, allocations: 8 kB / 439.7 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001368/0.2599, allocations: 11.92 kB / 439.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.649e-05/0.26, allocations: 7.984 kB / 439.7 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.828e-06/0.26, allocations: 8 kB / 439.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001007/0.2601, allocations: 112.1 kB / 439.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2601, allocations: 0 / 439.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003202/0.2604, allocations: 35.95 kB / 439.9 MB, free: 14.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 (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.0001024/0.2605, allocations: 103.5 kB / 440 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003333/0.2608, allocations: 119.7 kB / 440.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.2608, allocations: 0 / 440.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001003/0.2609, allocations: 32.94 kB / 440.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004887/0.2614, allocations: 70.11 kB / 440.2 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007645/0.2622, allocations: 448 kB / 440.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001187/0.2623, allocations: 114.5 kB / 440.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.399e-05/0.2623, allocations: 19.44 kB / 440.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2623, allocations: 0 / 440.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of Templates: time 0.004839/0.2672, allocations: 1.682 MB / 442.5 MB, free: 12.12 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: 7.299820485059172]