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.0008319/0.0008319, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.003173/0.003173, allocations: 160.9 kB / 24.7 MB, free: 9.426 MB / 18.57 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 0.8817/0.8817, allocations: 177.2 MB / 205 MB, free: 5.715 MB / 186.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.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 1.362e-06/1.362e-06, allocations: 0 / 325.8 MB, free: 15.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.916e-05/2.052e-05, allocations: 4.672 kB / 325.8 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002116/0.002137, allocations: 2.094 MB / 327.9 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009034/0.00304, allocations: 0.6587 MB / 328.6 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.599e-05/0.003136, allocations: 7.938 kB / 328.6 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002422/0.003378, allocations: 47.69 kB / 328.6 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001153/0.003494, allocations: 55.5 kB / 328.7 MB, free: 12.44 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002548/0.003749, allocations: 123.8 kB / 328.8 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002824/0.004031, allocations: 347.1 kB / 329.1 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001401/0.004171, allocations: 53.03 kB / 329.2 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002509/0.004422, allocations: 203.6 kB / 329.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001468/0.004569, allocations: 127.6 kB / 329.5 MB, free: 11.61 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.337e-05/0.004602, allocations: 32 kB / 329.5 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.821e-05/0.00463, allocations: 32 kB / 329.6 MB, free: 11.54 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.398e-05/0.004704, allocations: 91.7 kB / 329.7 MB, free: 11.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.566e-05/0.00477, allocations: 91.78 kB / 329.7 MB, free: 11.36 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002609/0.005031, allocations: 315 kB / 330.1 MB, free: 11.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.175e-06/0.005033, allocations: 0 / 330.1 MB, free: 11.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.005034, allocations: 0 / 330.1 MB, free: 11.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.418e-06/0.005039, allocations: 0 / 330.1 MB, free: 11.05 MB / 298.7 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.0007081/0.005747, allocations: 0.5012 MB / 330.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.005781, allocations: 12.03 kB / 330.6 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.31e-05/0.005834, allocations: 28.8 kB / 330.6 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002437/0.006078, allocations: 193.9 kB / 330.8 MB, free: 10.27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001922/0.00627, allocations: 343.8 kB / 331.1 MB, free: 9.867 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.374e-05/0.006314, allocations: 24.38 kB / 331.1 MB, free: 9.844 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005102/0.006824, allocations: 378.9 kB / 331.5 MB, free: 9.461 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.006838, allocations: 3.953 kB / 331.5 MB, free: 9.457 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.551e-05/0.006864, allocations: 8 kB / 331.5 MB, free: 9.449 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.725e-06/0.006872, allocations: 8 kB / 331.5 MB, free: 9.441 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007404/0.007612, allocations: 0.4976 MB / 332 MB, free: 8.941 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001008/0.00862, allocations: 0.8601 MB / 332.9 MB, free: 8.039 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005884/0.009208, allocations: 306.3 kB / 333.2 MB, free: 7.73 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002798/0.009488, allocations: 172.7 kB / 333.4 MB, free: 7.559 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.494e-05/0.009513, allocations: 0 / 333.4 MB, free: 7.559 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.669e-05/0.00953, allocations: 34.56 kB / 333.4 MB, free: 7.516 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.042e-06/0.009531, allocations: 0 / 333.4 MB, free: 7.516 MB / 298.7 MB Notification: Performance of matching and sorting (n=53): time 0.013/0.02253, allocations: 5.681 MB / 339.1 MB, free: 1.777 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.223e-05/0.02256, allocations: 55.91 kB / 339.1 MB, free: 1.711 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001513/0.02271, allocations: 206.9 kB / 339.3 MB, free: 1.5 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.536e-05/0.02275, allocations: 37.7 kB / 339.4 MB, free: 1.457 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.979e-05/0.02282, allocations: 157 kB / 339.5 MB, free: 1.297 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.591e-05/0.02291, allocations: 182.4 kB / 339.7 MB, free: 1.113 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001275/0.02304, allocations: 86.34 kB / 339.8 MB, free: 1.023 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.401e-05/0.02312, allocations: 346.7 kB / 340.1 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007079/0.02383, allocations: 469 kB / 340.6 MB, free: 220 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007299/0.02456, allocations: 0.5263 MB / 341.1 MB, free: 15.68 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00126/0.02582, allocations: 0.8181 MB / 341.9 MB, free: 14.84 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.02582, allocations: 0 / 341.9 MB, free: 14.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001477/0.0273, allocations: 0.9891 MB / 342.9 MB, free: 13.84 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.02731, allocations: 7.984 kB / 342.9 MB, free: 13.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.014e-06/0.02732, allocations: 12.06 kB / 342.9 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.02733, allocations: 0 / 342.9 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004442/0.02778, allocations: 163.8 kB / 343.1 MB, free: 13.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.02778, allocations: 7.938 kB / 343.1 MB, free: 13.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002992/0.02808, allocations: 91.81 kB / 343.2 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.026e-05/0.02811, allocations: 20 kB / 343.2 MB, free: 13.55 MB / 314.7 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.0001403/0.02825, allocations: 157.7 kB / 343.4 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.746e-05/0.0283, allocations: 35.8 kB / 343.4 MB, free: 13.35 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.446e-05/0.02836, allocations: 47.31 kB / 343.4 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.02836, allocations: 4 kB / 343.4 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.02837, allocations: 4 kB / 343.5 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.02837, allocations: 7.969 kB / 343.5 MB, free: 13.29 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002249/0.03062, allocations: 1.701 MB / 345.2 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.03063, allocations: 8 kB / 345.2 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003062/0.03093, allocations: 151.7 kB / 345.3 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.773e-06/0.03094, allocations: 12.47 kB / 345.3 MB, free: 11.28 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.452e-05/0.03096, allocations: 20 kB / 345.3 MB, free: 11.26 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.973e-06/0.03097, allocations: 19.94 kB / 345.4 MB, free: 11.24 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.03098, allocations: 8 kB / 345.4 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001588/0.03256, allocations: 1.228 MB / 346.6 MB, free: 9.871 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.703e-05/0.03266, allocations: 71.78 kB / 346.7 MB, free: 9.801 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.346e-05/0.03269, allocations: 23.98 kB / 346.7 MB, free: 9.777 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002503/0.03294, allocations: 71.92 kB / 346.8 MB, free: 9.707 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.03306, allocations: 91.7 kB / 346.9 MB, free: 9.617 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.226e-05/0.03309, allocations: 20 kB / 346.9 MB, free: 9.598 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.411e-05/0.03318, allocations: 156.3 kB / 347 MB, free: 9.445 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03318, allocations: 0 / 347 MB, free: 9.445 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002832/0.03346, allocations: 100 kB / 347.1 MB, free: 9.348 MB / 314.7 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 9.521e-05/0.03356, allocations: 123 kB / 347.2 MB, free: 9.219 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001432/0.03499, allocations: 0.7946 MB / 348 MB, free: 8.426 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.03499, allocations: 0 / 348 MB, free: 8.426 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005225/0.03552, allocations: 329.6 kB / 348.4 MB, free: 8.105 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003809/0.0359, allocations: 67.89 kB / 348.4 MB, free: 8.039 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001216/0.03711, allocations: 0.9768 MB / 349.4 MB, free: 6.918 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001191/0.03723, allocations: 180 kB / 349.6 MB, free: 6.723 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001709/0.0374, allocations: 32.5 kB / 349.6 MB, free: 6.688 MB / 314.7 MB Notification: Performance of SimCode: time 5.41e-07/0.0374, allocations: 4 kB / 349.6 MB, free: 6.684 MB / 314.7 MB Notification: Performance of Templates: time 0.004789/0.04219, allocations: 5.745 MB / 355.4 MB, free: 0.9688 MB / 314.7 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.386274772696197]