Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.001521/0.001521, allocations: 107.2 kB / 20.44 MB, free: 1.207 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.001745/0.001745, allocations: 209.9 kB / 23.73 MB, free: 4.41 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.467/1.467, allocations: 230.6 MB / 257.5 MB, free: 7.82 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.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001662/0.001662, allocations: 47.92 kB / 378.2 MB, free: 2.523 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2669/0.2685, allocations: 53.36 MB / 431.5 MB, free: 6.77 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003344/0.2719, allocations: 2.086 MB / 433.6 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001192/0.2731, allocations: 0.6549 MB / 434.3 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001083/0.2732, allocations: 7.938 kB / 434.3 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002682/0.2735, allocations: 47.64 kB / 434.3 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001444/0.2736, allocations: 43.64 kB / 434.4 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003373/0.2739, allocations: 123.8 kB / 434.5 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003948/0.2743, allocations: 347.2 kB / 434.8 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001494/0.2745, allocations: 48.19 kB / 434.9 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000253/0.2747, allocations: 147.6 kB / 435 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002225/0.275, allocations: 151.3 kB / 435.2 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.923e-05/0.275, allocations: 28 kB / 435.2 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.426e-05/0.2751, allocations: 32 kB / 435.2 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001045/0.2752, allocations: 87.72 kB / 435.3 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001079/0.2753, allocations: 107.5 kB / 435.4 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003295/0.2756, allocations: 289.5 kB / 435.7 MB, free: 2.586 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.2756, allocations: 0 / 435.7 MB, free: 2.586 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.2756, allocations: 4 kB / 435.7 MB, free: 2.582 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.498e-06/0.2756, allocations: 0 / 435.7 MB, free: 2.582 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001121/0.2767, allocations: 0.5204 MB / 436.2 MB, free: 2.031 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.122e-05/0.2768, allocations: 8.031 kB / 436.3 MB, free: 2.023 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.513e-05/0.2768, allocations: 32.8 kB / 436.3 MB, free: 1.992 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003395/0.2772, allocations: 193.2 kB / 436.5 MB, free: 1.781 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003243/0.2775, allocations: 339.8 kB / 436.8 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.35e-05/0.2776, allocations: 27.94 kB / 436.8 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008893/0.2785, allocations: 378.5 kB / 437.2 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.2785, allocations: 3.953 kB / 437.2 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.159e-05/0.2785, allocations: 12 kB / 437.2 MB, free: 0.957 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.335e-06/0.2785, allocations: 4 kB / 437.2 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001373/0.2799, allocations: 0.4898 MB / 437.7 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001744/0.2816, allocations: 0.8567 MB / 438.6 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001047/0.2827, allocations: 299.1 kB / 438.9 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005244/0.2832, allocations: 169.2 kB / 439 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.876e-05/0.2832, allocations: 12 kB / 439 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.465e-05/0.2833, allocations: 30.56 kB / 439.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.363e-06/0.2833, allocations: 0 / 439.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=53): time 0.02651/0.3098, allocations: 5.686 MB / 444.8 MB, free: 9.297 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.435e-05/0.3098, allocations: 71.72 kB / 444.8 MB, free: 9.215 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000281/0.3101, allocations: 202.9 kB / 445 MB, free: 9.008 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.741e-05/0.3102, allocations: 37.7 kB / 445.1 MB, free: 8.965 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.3103, allocations: 145 kB / 445.2 MB, free: 8.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001708/0.3105, allocations: 198.4 kB / 445.4 MB, free: 8.625 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002082/0.3107, allocations: 86.34 kB / 445.5 MB, free: 8.535 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.3108, allocations: 334.8 kB / 445.8 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001369/0.3122, allocations: 473 kB / 446.3 MB, free: 7.734 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001387/0.3136, allocations: 0.5264 MB / 446.8 MB, free: 7.199 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002436/0.316, allocations: 0.8101 MB / 447.6 MB, free: 6.375 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.316, allocations: 0 / 447.6 MB, free: 6.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002821/0.3188, allocations: 0.9969 MB / 448.6 MB, free: 5.371 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.3189, allocations: 10.66 kB / 448.6 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.3189, allocations: 0 / 448.6 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.3189, allocations: 4.125 kB / 448.6 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009457/0.3198, allocations: 179.7 kB / 448.8 MB, free: 5.184 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.788e-06/0.3198, allocations: 4 kB / 448.8 MB, free: 5.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006557/0.3205, allocations: 79.89 kB / 448.9 MB, free: 5.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.571e-05/0.3205, allocations: 19.98 kB / 448.9 MB, free: 5.082 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.00022/0.3208, allocations: 165.7 kB / 449.1 MB, free: 4.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.355e-05/0.3208, allocations: 27.81 kB / 449.1 MB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001279/0.321, allocations: 55.28 kB / 449.1 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.602e-06/0.321, allocations: 7.938 kB / 449.1 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.321, allocations: 4 kB / 449.1 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.317e-06/0.321, allocations: 7.984 kB / 449.2 MB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004197/0.3252, allocations: 1.695 MB / 450.8 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.141e-05/0.3252, allocations: 8 kB / 450.9 MB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006664/0.3259, allocations: 143.8 kB / 451 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.228e-05/0.3259, allocations: 11.98 kB / 451 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.506e-05/0.3259, allocations: 20 kB / 451 MB, free: 2.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.674e-05/0.326, allocations: 16.22 kB / 451 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-05/0.326, allocations: 19.88 kB / 451.1 MB, free: 2.754 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003097/0.3291, allocations: 1.246 MB / 452.3 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001849/0.3292, allocations: 63.84 kB / 452.4 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.957e-05/0.3293, allocations: 23.98 kB / 452.4 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005611/0.3299, allocations: 79.86 kB / 452.5 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002015/0.3301, allocations: 91.64 kB / 452.6 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.345e-05/0.3301, allocations: 27.94 kB / 452.6 MB, free: 1.094 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001926/0.3303, allocations: 156.3 kB / 452.7 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3303, allocations: 0 / 452.7 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004901/0.3308, allocations: 96 kB / 452.8 MB, free: 0.8477 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.0001716/0.331, allocations: 127 kB / 453 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002494/0.3335, allocations: 0.7942 MB / 453.8 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.3335, allocations: 4 kB / 453.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001026/0.3345, allocations: 321 kB / 454.1 MB, free: 15.6 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000627/0.3351, allocations: 66.34 kB / 454.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002329/0.3375, allocations: 1.025 MB / 455.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002092/0.3377, allocations: 172.2 kB / 455.3 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000399/0.3381, allocations: 82.88 kB / 455.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002147/0.3383, allocations: 31.44 kB / 455.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3383, allocations: 0 / 455.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of Templates: time 0.01176/0.35, allocations: 6.35 MB / 461.8 MB, free: 7.809 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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: 4.887478869408369]