Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.001266/0.001266, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001672/0.002938, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.001113/0.001113, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001406/0.002519, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.02/1.02, allocations: 177.2 MB / 189.8 MB, free: 5.258 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1147/1.135, allocations: 53.66 MB / 243.4 MB, free: 15.52 MB / 250.7 MB " [Timeout remaining time 179] 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.ClockedWithDiscretizedContinuousController,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.ClockedWithDiscretizedContinuousController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,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.ClockedWithDiscretizedContinuousController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.874e-06/1.874e-06, allocations: 0 / 244.7 MB, free: 14.27 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.085e-05/2.272e-05, allocations: 6.312 kB / 244.7 MB, free: 14.26 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002985/0.003008, allocations: 2.178 MB / 246.9 MB, free: 12.07 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007853/0.003794, allocations: 0.5372 MB / 247.4 MB, free: 11.53 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001114/0.003905, allocations: 8 kB / 247.4 MB, free: 11.52 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 7.58e-05/0.003981, allocations: 15.8 kB / 247.4 MB, free: 11.5 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.737e-05/0.004058, allocations: 35.66 kB / 247.5 MB, free: 11.47 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002073/0.004265, allocations: 55.8 kB / 247.5 MB, free: 11.41 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001807/0.004446, allocations: 131.5 kB / 247.6 MB, free: 11.29 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001322/0.004578, allocations: 38.58 kB / 247.7 MB, free: 11.24 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001469/0.004725, allocations: 87.8 kB / 247.8 MB, free: 11.16 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.944e-05/0.004815, allocations: 47.81 kB / 247.8 MB, free: 11.11 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.805e-05/0.004843, allocations: 8 kB / 247.8 MB, free: 11.1 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.715e-05/0.00486, allocations: 16 kB / 247.8 MB, free: 11.09 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.18e-05/0.004892, allocations: 19.94 kB / 247.8 MB, free: 11.07 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.533e-05/0.004927, allocations: 31.94 kB / 247.9 MB, free: 11.04 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001802/0.005107, allocations: 83.61 kB / 248 MB, free: 10.95 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.078e-05/0.005118, allocations: 0 / 248 MB, free: 10.95 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.41e-07/0.005119, allocations: 0 / 248 MB, free: 10.95 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.259e-05/0.005131, allocations: 0 / 248 MB, free: 10.95 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0005407/0.005672, allocations: 352.1 kB / 248.3 MB, free: 10.59 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.005709, allocations: 8.031 kB / 248.3 MB, free: 10.58 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.115e-05/0.00575, allocations: 20.86 kB / 248.3 MB, free: 10.56 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001955/0.005946, allocations: 153.5 kB / 248.5 MB, free: 10.38 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.317e-05/0.005959, allocations: 12.38 kB / 248.5 MB, free: 10.37 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.412e-05/0.005993, allocations: 20.33 kB / 248.5 MB, free: 10.35 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002646/0.006257, allocations: 191.8 kB / 248.7 MB, free: 10.14 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.006271, allocations: 4.125 kB / 248.7 MB, free: 10.13 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.048e-05/0.006282, allocations: 4.375 kB / 248.7 MB, free: 10.13 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.006289, allocations: 11.94 kB / 248.7 MB, free: 10.12 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.341e-05/0.006342, allocations: 27.92 kB / 248.7 MB, free: 10.09 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004592/0.006801, allocations: 461.9 kB / 249.2 MB, free: 9.598 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001871/0.006988, allocations: 103.7 kB / 249.3 MB, free: 9.469 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.358e-05/0.007032, allocations: 42.64 kB / 249.3 MB, free: 9.418 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.007053, allocations: 4 kB / 249.3 MB, free: 9.414 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.31e-05/0.007076, allocations: 38.5 kB / 249.4 MB, free: 9.367 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 1.323e-06/0.007077, allocations: 4 kB / 249.4 MB, free: 9.363 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001806/0.007258, allocations: 93.58 kB / 249.5 MB, free: 9.266 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.982e-05/0.007328, allocations: 114.8 kB / 249.6 MB, free: 9.129 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.645e-05/0.007404, allocations: 134.7 kB / 249.7 MB, free: 8.984 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.474e-05/0.007419, allocations: 25.7 kB / 249.7 MB, free: 8.953 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.435e-05/0.007473, allocations: 116 kB / 249.9 MB, free: 8.836 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.648e-05/0.00749, allocations: 23.83 kB / 249.9 MB, free: 8.812 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.047e-05/0.00753, allocations: 21.72 kB / 249.9 MB, free: 8.785 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.261e-05/0.007623, allocations: 326.8 kB / 250.2 MB, free: 8.457 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.657e-05/0.007639, allocations: 8 kB / 250.2 MB, free: 8.449 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.679e-05/0.007686, allocations: 72.77 kB / 250.3 MB, free: 8.352 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.855e-05/0.007765, allocations: 86.7 kB / 250.4 MB, free: 8.242 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.007768, allocations: 0 / 250.4 MB, free: 8.242 MB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 9.435e-05/0.007862, allocations: 85.78 kB / 250.5 MB, free: 8.152 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.007877, allocations: 8 kB / 250.5 MB, free: 8.145 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.007883, allocations: 3.984 kB / 250.5 MB, free: 8.141 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.007898, allocations: 4 kB / 250.5 MB, free: 8.137 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001234/0.008021, allocations: 35.91 kB / 250.5 MB, free: 8.102 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.568e-06/0.008026, allocations: 0 / 250.5 MB, free: 8.102 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.835e-05/0.008064, allocations: 19.83 kB / 250.5 MB, free: 8.082 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.414e-06/0.008072, allocations: 8 kB / 250.6 MB, free: 8.074 MB / 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 7.823e-05/0.00815, allocations: 118 kB / 250.7 MB, free: 7.949 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.591e-05/0.008236, allocations: 65.59 kB / 250.7 MB, free: 7.879 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.329e-05/0.008269, allocations: 16.78 kB / 250.7 MB, free: 7.863 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.008274, allocations: 4 kB / 250.7 MB, free: 7.859 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.008277, allocations: 0 / 250.7 MB, free: 7.859 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.008282, allocations: 0 / 250.7 MB, free: 7.859 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001326/0.008414, allocations: 97.73 kB / 250.8 MB, free: 7.746 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.008417, allocations: 4 kB / 250.8 MB, free: 7.742 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001495/0.008567, allocations: 47.91 kB / 250.9 MB, free: 7.695 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.645e-05/0.008583, allocations: 15.89 kB / 250.9 MB, free: 7.68 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.008585, allocations: 4 kB / 250.9 MB, free: 7.676 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.008604, allocations: 8 kB / 250.9 MB, free: 7.668 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.008606, allocations: 0 / 250.9 MB, free: 7.668 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.008608, allocations: 0 / 250.9 MB, free: 7.668 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000162/0.00877, allocations: 247.5 kB / 251.2 MB, free: 7.406 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.431e-05/0.008785, allocations: 0 / 251.2 MB, free: 7.406 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.716e-05/0.008842, allocations: 8 kB / 251.2 MB, free: 7.398 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.665e-05/0.008878, allocations: 7.984 kB / 251.2 MB, free: 7.391 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-06/0.008882, allocations: 0 / 251.2 MB, free: 7.391 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.961e-05/0.008912, allocations: 35.92 kB / 251.2 MB, free: 7.355 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.008912, allocations: 0 / 251.2 MB, free: 7.355 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000168/0.00908, allocations: 27.97 kB / 251.2 MB, free: 7.328 MB / 250.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 (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 9.483e-05/0.009175, allocations: 88.34 kB / 251.3 MB, free: 7.234 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001132/0.009288, allocations: 60.77 kB / 251.4 MB, free: 7.172 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.812e-06/0.009295, allocations: 0 / 251.4 MB, free: 7.172 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.001e-05/0.009325, allocations: 28.72 kB / 251.4 MB, free: 7.141 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003701/0.009695, allocations: 225.2 kB / 251.6 MB, free: 6.887 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001383/0.01108, allocations: 327.7 kB / 252 MB, free: 6.531 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.466e-05/0.01113, allocations: 75.33 kB / 252 MB, free: 6.438 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.171e-05/0.01116, allocations: 8.984 kB / 252 MB, free: 6.43 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.33e-05/0.01124, allocations: 67.36 kB / 252.1 MB, free: 6.363 MB / 250.7 MB Notification: Performance of SimCode: time 9.91e-07/0.01124, allocations: 0 / 252.1 MB, free: 6.363 MB / 250.7 MB Notification: Performance of Templates: time 0.00337/0.01461, allocations: 1.417 MB / 253.5 MB, free: 5.023 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8481490248814225]