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.001122/0.001122, allocations: 85.91 kB / 22.22 MB, free: 2.285 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.001136/0.001136, allocations: 167.4 kB / 25.61 MB, free: 8.578 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.9905/0.9905, allocations: 177 MB / 205.9 MB, free: 4.453 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.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.693e-06/1.693e-06, allocations: 0 / 274.1 MB, free: 4.402 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.627e-05/1.796e-05, allocations: 5.172 kB / 274.1 MB, free: 4.398 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002959/0.002977, allocations: 2.352 MB / 276.4 MB, free: 2.039 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001235/0.004212, allocations: 0.8246 MB / 277.3 MB, free: 1.211 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001129/0.004325, allocations: 10 kB / 277.3 MB, free: 1.203 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000233/0.004558, allocations: 51.58 kB / 277.3 MB, free: 1.152 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001476/0.004705, allocations: 63.48 kB / 277.4 MB, free: 1.09 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003079/0.005013, allocations: 177 kB / 277.6 MB, free: 0.918 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002808/0.005294, allocations: 389.9 kB / 277.9 MB, free: 0.5391 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001412/0.005435, allocations: 72.34 kB / 278 MB, free: 480 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002581/0.005693, allocations: 239.4 kB / 278.2 MB, free: 240 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000155/0.005848, allocations: 143.6 kB / 278.4 MB, free: 96 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.918e-05/0.005887, allocations: 36 kB / 278.4 MB, free: 60 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.12e-05/0.005919, allocations: 36 kB / 278.5 MB, free: 24 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.032e-05/0.006009, allocations: 101.2 kB / 278.6 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.797e-05/0.006087, allocations: 99.72 kB / 278.7 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000226/0.006313, allocations: 267 kB / 278.9 MB, free: 15.57 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.973e-06/0.006315, allocations: 0 / 278.9 MB, free: 15.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.006316, allocations: 0.8125 kB / 278.9 MB, free: 15.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.547e-06/0.006319, allocations: 0 / 278.9 MB, free: 15.57 MB / 266.7 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.0006712/0.00699, allocations: 0.6449 MB / 279.6 MB, free: 14.89 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.781e-05/0.007018, allocations: 8.031 kB / 279.6 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.021e-05/0.007098, allocations: 68.75 kB / 279.6 MB, free: 14.81 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004213/0.00752, allocations: 224.5 kB / 279.9 MB, free: 14.57 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001647/0.007684, allocations: 343.9 kB / 280.2 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.98e-05/0.007724, allocations: 28.36 kB / 280.2 MB, free: 14.13 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004621/0.008186, allocations: 430.4 kB / 280.6 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.008199, allocations: 4.188 kB / 280.6 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.326e-05/0.008222, allocations: 12.12 kB / 280.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.008229, allocations: 8 kB / 280.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002757/0.008504, allocations: 204.4 kB / 280.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007692/0.009274, allocations: 0.8867 MB / 281.7 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000462/0.009736, allocations: 320.8 kB / 282.1 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001281/0.009864, allocations: 130.7 kB / 282.2 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.161e-05/0.009895, allocations: 11.94 kB / 282.2 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.307e-05/0.009918, allocations: 41.39 kB / 282.2 MB, free: 11.95 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.573e-06/0.00992, allocations: 4 kB / 282.2 MB, free: 11.95 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.006529/0.01645, allocations: 2.396 MB / 284.6 MB, free: 9.543 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.361e-05/0.01651, allocations: 145.1 kB / 284.8 MB, free: 9.371 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/0.01663, allocations: 243.4 kB / 285 MB, free: 9.113 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.483e-05/0.01668, allocations: 41.7 kB / 285.1 MB, free: 9.066 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.699e-05/0.01675, allocations: 192.5 kB / 285.2 MB, free: 8.871 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001173/0.01687, allocations: 194.3 kB / 285.4 MB, free: 8.68 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001768/0.01705, allocations: 99.95 kB / 285.5 MB, free: 8.574 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.01716, allocations: 0.5117 MB / 286 MB, free: 8.051 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002738/0.01743, allocations: 249.2 kB / 286.3 MB, free: 7.809 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003226/0.01776, allocations: 371.9 kB / 286.7 MB, free: 7.406 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006685/0.01843, allocations: 0.5419 MB / 287.2 MB, free: 6.828 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.01843, allocations: 0 / 287.2 MB, free: 6.828 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.000782/0.01921, allocations: 0.6613 MB / 287.9 MB, free: 6.156 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.01922, allocations: 6.656 kB / 287.9 MB, free: 6.152 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.01923, allocations: 4.219 kB / 287.9 MB, free: 6.148 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.447e-06/0.01924, allocations: 8 kB / 287.9 MB, free: 6.141 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005735/0.01981, allocations: 163.7 kB / 288 MB, free: 5.98 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.01982, allocations: 4 kB / 288 MB, free: 5.977 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003734/0.02019, allocations: 79.81 kB / 288.1 MB, free: 5.898 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.317e-05/0.02024, allocations: 15.98 kB / 288.1 MB, free: 5.883 MB / 266.7 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.0001747/0.02041, allocations: 192.4 kB / 288.3 MB, free: 5.684 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001949/0.02061, allocations: 149.4 kB / 288.5 MB, free: 5.531 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.222e-05/0.02069, allocations: 67.28 kB / 288.5 MB, free: 5.465 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.02069, allocations: 8 kB / 288.5 MB, free: 5.457 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.02069, allocations: 0 / 288.5 MB, free: 5.457 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.0207, allocations: 11.92 kB / 288.6 MB, free: 5.445 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001679/0.02238, allocations: 1.454 MB / 290 MB, free: 3.785 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/0.02239, allocations: 12 kB / 290 MB, free: 3.773 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003441/0.02273, allocations: 167.7 kB / 290.2 MB, free: 3.609 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.386e-06/0.02274, allocations: 12 kB / 290.2 MB, free: 3.598 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.958e-05/0.02277, allocations: 24 kB / 290.2 MB, free: 3.574 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.668e-06/0.02278, allocations: 19.92 kB / 290.2 MB, free: 3.555 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/0.02279, allocations: 15.94 kB / 290.2 MB, free: 3.539 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007215/0.02351, allocations: 1.054 MB / 291.3 MB, free: 2.277 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001077/0.02362, allocations: 91.62 kB / 291.4 MB, free: 2.188 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.081e-05/0.02366, allocations: 27.98 kB / 291.4 MB, free: 2.16 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002565/0.02391, allocations: 55.95 kB / 291.5 MB, free: 2.105 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/0.02403, allocations: 95.66 kB / 291.6 MB, free: 2.012 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.756e-05/0.02405, allocations: 24 kB / 291.6 MB, free: 1.988 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.927e-05/0.02411, allocations: 162.2 kB / 291.8 MB, free: 1.832 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02411, allocations: 0 / 291.8 MB, free: 1.832 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003636/0.02448, allocations: 120 kB / 291.9 MB, free: 1.715 MB / 266.7 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.0001077/0.02459, allocations: 138.9 kB / 292 MB, free: 1.57 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005696/0.02515, allocations: 0.4999 MB / 292.5 MB, free: 1.066 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.02516, allocations: 4 kB / 292.5 MB, free: 1.062 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001742/0.02533, allocations: 158.7 kB / 292.7 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005331/0.02587, allocations: 149.2 kB / 292.8 MB, free: 0.7617 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001401/0.02727, allocations: 1.124 MB / 293.9 MB, free: 15.42 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.889e-05/0.02736, allocations: 134.8 kB / 294.1 MB, free: 15.27 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000254/0.02761, allocations: 75.2 kB / 294.1 MB, free: 15.2 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003109/0.02792, allocations: 134.2 kB / 294.3 MB, free: 15.07 MB / 282.7 MB Notification: Performance of SimCode: time 8.12e-07/0.02792, allocations: 0 / 294.3 MB, free: 15.07 MB / 282.7 MB Notification: Performance of Templates: time 0.01265/0.04058, allocations: 9.661 MB / 303.9 MB, free: 5.488 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.089575541205704]