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.0009137/0.0009137, allocations: 85.05 kB / 21.5 MB, free: 2.988 MB / 18.57 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.0009681/0.0009681, allocations: 141.7 kB / 24.89 MB, free: 8.777 MB / 18.57 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 0.89/0.89, allocations: 173.4 MB / 201.5 MB, free: 8.754 MB / 186.7 MB " [Timeout remaining time 179] 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 1.112e-06/1.112e-06, allocations: 0 / 268.4 MB, free: 6.059 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.251e-05/1.363e-05, allocations: 5.969 kB / 268.4 MB, free: 6.055 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002142/0.002155, allocations: 2.045 MB / 270.5 MB, free: 3.992 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000616/0.002771, allocations: 0.5101 MB / 271 MB, free: 3.477 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.705e-05/0.002848, allocations: 3.938 kB / 271 MB, free: 3.473 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.125e-05/0.00294, allocations: 19.81 kB / 271 MB, free: 3.453 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.508e-05/0.002995, allocations: 19.78 kB / 271 MB, free: 3.434 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002083/0.003203, allocations: 55.86 kB / 271.1 MB, free: 3.379 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001211/0.003324, allocations: 123.5 kB / 271.2 MB, free: 3.258 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.982e-05/0.003424, allocations: 42.2 kB / 271.3 MB, free: 3.211 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.833e-05/0.003512, allocations: 79.73 kB / 271.3 MB, free: 3.133 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.398e-05/0.003576, allocations: 39.89 kB / 271.4 MB, free: 3.094 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.189e-05/0.003598, allocations: 15.98 kB / 271.4 MB, free: 3.078 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.28e-05/0.003611, allocations: 12 kB / 271.4 MB, free: 3.066 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.72e-05/0.003638, allocations: 19.92 kB / 271.4 MB, free: 3.047 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.29e-05/0.003671, allocations: 39.91 kB / 271.5 MB, free: 3.008 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001215/0.003793, allocations: 87.64 kB / 271.5 MB, free: 2.922 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.643e-06/0.003794, allocations: 0 / 271.5 MB, free: 2.922 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.22e-07/0.003795, allocations: 0 / 271.5 MB, free: 2.922 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.003799, allocations: 0 / 271.5 MB, free: 2.922 MB / 250.7 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.0003183/0.004117, allocations: 328.4 kB / 271.9 MB, free: 2.578 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.177e-05/0.004149, allocations: 8.922 kB / 271.9 MB, free: 2.57 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.107e-05/0.00418, allocations: 24.92 kB / 271.9 MB, free: 2.547 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000123/0.004303, allocations: 133.3 kB / 272 MB, free: 2.395 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.928e-06/0.004313, allocations: 12.31 kB / 272 MB, free: 2.383 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.316e-05/0.004336, allocations: 20.33 kB / 272.1 MB, free: 2.363 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002081/0.004544, allocations: 203.8 kB / 272.3 MB, free: 2.137 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.004553, allocations: 4.188 kB / 272.3 MB, free: 2.133 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.854e-06/0.004561, allocations: 384 / 272.3 MB, free: 2.133 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.752e-06/0.004567, allocations: 7.938 kB / 272.3 MB, free: 2.125 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.478e-05/0.004612, allocations: 35.86 kB / 272.3 MB, free: 2.09 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000315/0.004927, allocations: 454 kB / 272.8 MB, free: 1.609 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001054/0.005033, allocations: 103.6 kB / 272.9 MB, free: 1.48 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.64e-05/0.005069, allocations: 38.58 kB / 272.9 MB, free: 1.434 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.543e-05/0.005084, allocations: 4.078 kB / 272.9 MB, free: 1.43 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.165e-05/0.005106, allocations: 42.5 kB / 272.9 MB, free: 1.379 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 9.41e-07/0.005107, allocations: 0 / 272.9 MB, free: 1.379 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001433/0.00525, allocations: 93.53 kB / 273 MB, free: 1.281 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.448e-05/0.005295, allocations: 110.8 kB / 273.1 MB, free: 1.148 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.618e-05/0.005351, allocations: 130.7 kB / 273.3 MB, free: 1.008 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.428e-06/0.00536, allocations: 25.7 kB / 273.3 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.646e-05/0.005397, allocations: 116 kB / 273.4 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.331e-05/0.00541, allocations: 19.8 kB / 273.4 MB, free: 0.8398 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.909e-05/0.005439, allocations: 29.69 kB / 273.4 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.725e-05/0.005507, allocations: 326.8 kB / 273.8 MB, free: 488 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.125e-05/0.005518, allocations: 8.125 kB / 273.8 MB, free: 480 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.432e-05/0.005552, allocations: 58.84 kB / 273.8 MB, free: 396 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.59e-05/0.005608, allocations: 78.73 kB / 273.9 MB, free: 292 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.005611, allocations: 4 kB / 273.9 MB, free: 288 kB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 7.479e-05/0.005685, allocations: 85.47 kB / 274 MB, free: 196 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.006e-05/0.005695, allocations: 8 kB / 274 MB, free: 188 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.0057, allocations: 240 / 274 MB, free: 188 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.367e-06/0.005709, allocations: 4 kB / 274 MB, free: 184 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.244e-05/0.005782, allocations: 31.92 kB / 274 MB, free: 152 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.965e-06/0.005784, allocations: 0 / 274 MB, free: 152 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.131e-05/0.005816, allocations: 11.94 kB / 274.1 MB, free: 140 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.703e-06/0.005822, allocations: 11.92 kB / 274.1 MB, free: 128 kB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (12): * Single equations (assignments): 12 * 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 6.694e-05/0.005889, allocations: 122.1 kB / 274.2 MB, free: 15.99 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.614e-05/0.005946, allocations: 61.94 kB / 274.2 MB, free: 15.93 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.328e-05/0.005969, allocations: 20.77 kB / 274.3 MB, free: 15.91 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.796e-06/0.005972, allocations: 7.938 kB / 274.3 MB, free: 15.9 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-06/0.005973, allocations: 0 / 274.3 MB, free: 15.9 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.005976, allocations: 0 / 274.3 MB, free: 15.9 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001178/0.006094, allocations: 89.77 kB / 274.4 MB, free: 15.8 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.006095, allocations: 0 / 274.4 MB, free: 15.8 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.635e-05/0.006171, allocations: 31.92 kB / 274.4 MB, free: 15.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.006174, allocations: 4 kB / 274.4 MB, free: 15.76 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.006185, allocations: 11.98 kB / 274.4 MB, free: 15.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.006185, allocations: 0 / 274.4 MB, free: 15.75 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.006187, allocations: 4 kB / 274.4 MB, free: 15.75 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001161/0.006303, allocations: 239.6 kB / 274.6 MB, free: 15.49 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.249e-05/0.006316, allocations: 19.83 kB / 274.7 MB, free: 15.47 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.251e-05/0.006328, allocations: 8 kB / 274.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.512e-05/0.006383, allocations: 4 kB / 274.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.307e-05/0.006406, allocations: 3.984 kB / 274.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.561e-06/0.006412, allocations: 8 kB / 274.7 MB, free: 15.45 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.748e-05/0.00643, allocations: 24.08 kB / 274.7 MB, free: 15.43 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.00643, allocations: 4.031 kB / 274.7 MB, free: 15.42 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000154/0.006584, allocations: 20 kB / 274.7 MB, free: 15.4 MB / 266.7 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 6.114e-05/0.006645, allocations: 80.42 kB / 274.8 MB, free: 15.32 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.961e-05/0.006724, allocations: 64.69 kB / 274.9 MB, free: 15.25 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.006727, allocations: 0 / 274.9 MB, free: 15.25 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.728e-05/0.006744, allocations: 16.8 kB / 274.9 MB, free: 15.23 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002297/0.006974, allocations: 51.33 kB / 274.9 MB, free: 15.18 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004769/0.007451, allocations: 319.2 kB / 275.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.993e-05/0.007491, allocations: 75.27 kB / 275.3 MB, free: 14.74 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.134e-05/0.007512, allocations: 4.5 kB / 275.3 MB, free: 14.74 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.344e-05/0.007565, allocations: 63.36 kB / 275.4 MB, free: 14.68 MB / 266.7 MB Notification: Performance of SimCode: time 3.81e-07/0.007566, allocations: 4 kB / 275.4 MB, free: 14.67 MB / 266.7 MB Notification: Performance of Templates: time 0.00248/0.01005, allocations: 1.197 MB / 276.6 MB, free: 13.52 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5433161123655736]