Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008629/0.0008629, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.006702/0.006702, allocations: 159.5 kB / 24.7 MB, free: 9.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8716/0.8716, allocations: 177 MB / 204.9 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 325.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.64e-05/2.8e-05, allocations: 6.219 kB / 325.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002332/0.00236, allocations: 2.08 MB / 327.8 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008895/0.003249, allocations: 0.6703 MB / 328.5 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.653e-05/0.003346, allocations: 0 / 328.5 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002547/0.0036, allocations: 43.64 kB / 328.5 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001235/0.003724, allocations: 51.62 kB / 328.6 MB, free: 12.56 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002712/0.003995, allocations: 131.7 kB / 328.7 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002661/0.004261, allocations: 347.1 kB / 329.1 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001446/0.004406, allocations: 52.52 kB / 329.1 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002714/0.004677, allocations: 203.5 kB / 329.3 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001509/0.004828, allocations: 131.6 kB / 329.4 MB, free: 11.71 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.608e-05/0.004864, allocations: 32 kB / 329.5 MB, free: 11.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.591e-05/0.00489, allocations: 28 kB / 329.5 MB, free: 11.65 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.779e-05/0.004968, allocations: 91.7 kB / 329.6 MB, free: 11.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.485e-05/0.005033, allocations: 83.8 kB / 329.7 MB, free: 11.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003466/0.005379, allocations: 315 kB / 330 MB, free: 11.17 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.806e-06/0.005382, allocations: 8 kB / 330 MB, free: 11.16 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.005384, allocations: 0 / 330 MB, free: 11.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.005389, allocations: 0 / 330 MB, free: 11.16 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.0007238/0.006113, allocations: 0.5012 MB / 330.5 MB, free: 10.63 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.006151, allocations: 11.98 kB / 330.5 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.673e-05/0.006207, allocations: 32.8 kB / 330.5 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002878/0.006495, allocations: 189.9 kB / 330.7 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001942/0.006689, allocations: 343.8 kB / 331 MB, free: 9.977 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.137e-05/0.006731, allocations: 28.36 kB / 331.1 MB, free: 9.949 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005085/0.007239, allocations: 382.9 kB / 331.4 MB, free: 9.566 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.007254, allocations: 3.953 kB / 331.5 MB, free: 9.562 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.082e-05/0.007275, allocations: 8 kB / 331.5 MB, free: 9.555 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.007282, allocations: 4 kB / 331.5 MB, free: 9.551 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007364/0.008018, allocations: 0.4899 MB / 332 MB, free: 9.055 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001061/0.009079, allocations: 0.8718 MB / 332.8 MB, free: 8.141 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006043/0.009683, allocations: 305.5 kB / 333.1 MB, free: 7.836 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002809/0.009964, allocations: 172.7 kB / 333.3 MB, free: 7.664 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.999e-05/0.009994, allocations: 4 kB / 333.3 MB, free: 7.66 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.3e-05/0.01002, allocations: 42.5 kB / 333.3 MB, free: 7.609 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.643e-06/0.01002, allocations: 0 / 333.3 MB, free: 7.609 MB / 298.7 MB Notification: Performance of matching and sorting (n=53): time 0.01335/0.02337, allocations: 5.675 MB / 339 MB, free: 1.879 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.257e-05/0.02341, allocations: 55.91 kB / 339.1 MB, free: 1.812 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001891/0.0236, allocations: 210.3 kB / 339.3 MB, free: 1.598 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.759e-05/0.02364, allocations: 29.7 kB / 339.3 MB, free: 1.562 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.657e-05/0.02372, allocations: 156.9 kB / 339.5 MB, free: 1.402 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.02382, allocations: 194.3 kB / 339.6 MB, free: 1.207 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001365/0.02396, allocations: 90.34 kB / 339.7 MB, free: 1.113 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.973e-05/0.02405, allocations: 342.8 kB / 340.1 MB, free: 0.7695 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007155/0.02476, allocations: 465 kB / 340.5 MB, free: 320 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007445/0.02551, allocations: 0.5264 MB / 341 MB, free: 15.77 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00127/0.02678, allocations: 0.8103 MB / 341.9 MB, free: 14.95 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.02678, allocations: 0 / 341.9 MB, free: 14.95 MB / 314.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001505/0.02829, allocations: 1.001 MB / 342.9 MB, free: 13.94 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.02831, allocations: 8 kB / 342.9 MB, free: 13.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.647e-06/0.02832, allocations: 0 / 342.9 MB, free: 13.93 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.998e-05/0.02834, allocations: 8.125 kB / 342.9 MB, free: 13.92 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004775/0.02881, allocations: 167.7 kB / 343 MB, free: 13.76 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.02882, allocations: 4 kB / 343 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003081/0.02913, allocations: 91.81 kB / 343.1 MB, free: 13.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.116e-05/0.02916, allocations: 20 kB / 343.2 MB, free: 13.64 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.0001786/0.02934, allocations: 157.7 kB / 343.3 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.02e-05/0.02939, allocations: 27.81 kB / 343.3 MB, free: 13.45 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.835e-05/0.02946, allocations: 51.31 kB / 343.4 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.02947, allocations: 8 kB / 343.4 MB, free: 13.4 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.02948, allocations: 0 / 343.4 MB, free: 13.4 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.02948, allocations: 3.984 kB / 343.4 MB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002403/0.03188, allocations: 1.698 MB / 345.1 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.03189, allocations: 8 kB / 345.1 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003177/0.03221, allocations: 147.8 kB / 345.2 MB, free: 11.4 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.729e-06/0.03222, allocations: 8 kB / 345.3 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.52e-05/0.03224, allocations: 20.38 kB / 345.3 MB, free: 11.37 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.315e-06/0.03225, allocations: 19.92 kB / 345.3 MB, free: 11.35 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.317e-06/0.03226, allocations: 15.94 kB / 345.3 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001585/0.03385, allocations: 1.224 MB / 346.5 MB, free: 9.984 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/0.03395, allocations: 63.86 kB / 346.6 MB, free: 9.922 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.818e-05/0.03399, allocations: 23.98 kB / 346.6 MB, free: 9.898 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002522/0.03424, allocations: 75.92 kB / 346.7 MB, free: 9.824 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001416/0.03439, allocations: 91.64 kB / 346.8 MB, free: 9.734 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.342e-05/0.03441, allocations: 24 kB / 346.8 MB, free: 9.711 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001076/0.03452, allocations: 160.2 kB / 347 MB, free: 9.555 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03452, allocations: 3.938 kB / 347 MB, free: 9.551 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003118/0.03483, allocations: 96 kB / 347.1 MB, free: 9.457 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 0.0001332/0.03496, allocations: 127 kB / 347.2 MB, free: 9.324 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001285/0.03625, allocations: 0.7946 MB / 348 MB, free: 8.527 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.03625, allocations: 4 kB / 348 MB, free: 8.523 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000541/0.03679, allocations: 329.6 kB / 348.3 MB, free: 8.203 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004284/0.03722, allocations: 67.97 kB / 348.4 MB, free: 8.137 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001384/0.03861, allocations: 0.9881 MB / 349.4 MB, free: 7.008 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001242/0.03873, allocations: 176.1 kB / 349.5 MB, free: 6.82 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001729/0.0389, allocations: 40.48 kB / 349.6 MB, free: 6.777 MB / 314.7 MB Notification: Performance of SimCode: time 1.362e-06/0.0389, allocations: 0 / 349.6 MB, free: 6.777 MB / 314.7 MB Notification: Performance of Templates: time 0.005651/0.04455, allocations: 5.737 MB / 355.3 MB, free: 1.07 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.659130421467125]