Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.001395/0.001395, allocations: 89.14 kB / 20.68 MB, free: 1.02 MB / 14.72 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.001568/0.001568, allocations: 158.8 kB / 23.95 MB, free: 4.152 MB / 14.72 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 1.438/1.438, allocations: 177 MB / 204.1 MB, free: 9.16 MB / 190.1 MB " [Timeout remaining time 178] 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.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 325 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.413e-05/2.574e-05, allocations: 4.812 kB / 325 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003581/0.003607, allocations: 2.273 MB / 327.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001629/0.005235, allocations: 0.8054 MB / 328.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001625/0.005398, allocations: 7.719 kB / 328.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003063/0.005704, allocations: 52.22 kB / 328.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000212/0.005916, allocations: 70.3 kB / 328.2 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005745/0.006491, allocations: 178.3 kB / 328.4 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004966/0.006987, allocations: 390.3 kB / 328.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002014/0.007189, allocations: 67.45 kB / 328.8 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004443/0.007633, allocations: 241.9 kB / 329.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002788/0.007912, allocations: 149.1 kB / 329.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.069e-05/0.007983, allocations: 34.97 kB / 329.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.545e-05/0.008048, allocations: 35.22 kB / 329.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001503/0.008198, allocations: 97.58 kB / 329.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000142/0.00834, allocations: 104.6 kB / 329.5 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005007/0.008841, allocations: 365.5 kB / 329.8 MB, free: 13.6 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.008845, allocations: 0 / 329.8 MB, free: 13.6 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.008846, allocations: 0 / 329.8 MB, free: 13.6 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.008852, allocations: 1.406 kB / 329.8 MB, free: 13.6 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001284/0.01014, allocations: 0.5534 MB / 330.4 MB, free: 13.15 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.496e-05/0.01017, allocations: 14.11 kB / 330.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.088e-05/0.01025, allocations: 46.34 kB / 330.4 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003903/0.01064, allocations: 210.7 kB / 330.6 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003345/0.01098, allocations: 348.4 kB / 331 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.519e-05/0.01104, allocations: 32.31 kB / 331 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001307/0.01235, allocations: 0.578 MB / 331.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.95e-05/0.01237, allocations: 5.422 kB / 331.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.039e-05/0.01241, allocations: 15.5 kB / 331.6 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.72e-05/0.01243, allocations: 14.92 kB / 331.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001531/0.01396, allocations: 0.5106 MB / 332.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001455/0.01541, allocations: 0.8358 MB / 333 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001572/0.01698, allocations: 468.5 kB / 333.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007036/0.01769, allocations: 242.3 kB / 333.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.704e-05/0.01774, allocations: 10.52 kB / 333.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.825e-05/0.01777, allocations: 46.59 kB / 333.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 1.994e-06/0.01778, allocations: 0 / 333.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.04111/0.05889, allocations: 5.756 MB / 339.5 MB, free: 6.336 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/0.059, allocations: 149 kB / 339.6 MB, free: 6.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002509/0.05925, allocations: 208.6 kB / 339.8 MB, free: 5.945 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.099e-05/0.05934, allocations: 41.64 kB / 339.9 MB, free: 5.898 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.564e-05/0.05944, allocations: 141.8 kB / 340 MB, free: 5.758 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002014/0.05964, allocations: 198.3 kB / 340.2 MB, free: 5.562 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000287/0.05992, allocations: 94.3 kB / 340.3 MB, free: 5.465 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.06008, allocations: 346.7 kB / 340.6 MB, free: 5.117 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001778/0.06185, allocations: 0.6064 MB / 341.2 MB, free: 4.512 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001848/0.0637, allocations: 0.682 MB / 341.9 MB, free: 3.797 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003348/0.06705, allocations: 1.122 MB / 343 MB, free: 2.648 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.06705, allocations: 0 / 343 MB, free: 2.648 MB / 302.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.00379/0.07084, allocations: 1.298 MB / 344.3 MB, free: 1.344 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.07086, allocations: 4 kB / 344.3 MB, free: 1.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/0.07088, allocations: 7.984 kB / 344.4 MB, free: 1.332 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.956e-05/0.0709, allocations: 4 kB / 344.4 MB, free: 1.328 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001348/0.07224, allocations: 180.1 kB / 344.5 MB, free: 1.152 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.186e-05/0.07226, allocations: 4 kB / 344.5 MB, free: 1.148 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009578/0.07321, allocations: 95.81 kB / 344.6 MB, free: 1.055 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.51e-05/0.0733, allocations: 19.94 kB / 344.6 MB, free: 1.035 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 67 * 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.0003263/0.07362, allocations: 173.6 kB / 344.8 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003283/0.07395, allocations: 157.6 kB / 345 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001727/0.07413, allocations: 79.22 kB / 345 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.07413, allocations: 8 kB / 345.1 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.07414, allocations: 0 / 345.1 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.07415, allocations: 3.984 kB / 345.1 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005022/0.07917, allocations: 1.902 MB / 347 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-05/0.07919, allocations: 12 kB / 347 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008211/0.08001, allocations: 192.4 kB / 347.2 MB, free: 14.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.661e-05/0.08002, allocations: 12 kB / 347.2 MB, free: 14.32 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.387e-05/0.08008, allocations: 24 kB / 347.2 MB, free: 14.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-05/0.0801, allocations: 19.94 kB / 347.2 MB, free: 14.28 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-05/0.08011, allocations: 23.88 kB / 347.2 MB, free: 14.26 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00363/0.08374, allocations: 1.554 MB / 348.8 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001946/0.08394, allocations: 91.7 kB / 348.9 MB, free: 12.46 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.273e-05/0.08402, allocations: 35.98 kB / 348.9 MB, free: 12.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006453/0.08467, allocations: 71.92 kB / 349 MB, free: 12.36 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002141/0.08488, allocations: 95.64 kB / 349.1 MB, free: 12.26 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.161e-05/0.08494, allocations: 39.94 kB / 349.1 MB, free: 12.22 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001389/0.08508, allocations: 149.1 kB / 349.3 MB, free: 12.08 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.08508, allocations: 0 / 349.3 MB, free: 12.08 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006201/0.0857, allocations: 120 kB / 349.4 MB, free: 11.96 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.00017/0.08587, allocations: 139.1 kB / 349.5 MB, free: 11.82 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003016/0.08889, allocations: 0.991 MB / 350.5 MB, free: 10.83 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.411e-06/0.08889, allocations: 8.125 kB / 350.5 MB, free: 10.82 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00112/0.09001, allocations: 329.9 kB / 350.8 MB, free: 10.5 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009082/0.09092, allocations: 138.5 kB / 351 MB, free: 10.37 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002433/0.09336, allocations: 1.104 MB / 352.1 MB, free: 9.098 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002334/0.09359, allocations: 211.3 kB / 352.3 MB, free: 8.867 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004508/0.09404, allocations: 91.17 kB / 352.4 MB, free: 8.777 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003175/0.09436, allocations: 40.48 kB / 352.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of SimCode: time 3.31e-07/0.09436, allocations: 0 / 352.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of Templates: time 0.01446/0.1088, allocations: 8.686 MB / 361.1 MB, free: 116 kB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.694579858332872]