Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.001442/0.001442, allocations: 83.58 kB / 21.19 MB, free: 3.379 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.001278/0.001278, allocations: 161 kB / 24.56 MB, free: 12 kB / 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 1.094/1.094, allocations: 177.1 MB / 205 MB, free: 5.223 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.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_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_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.784e-06/1.784e-06, allocations: 0 / 273 MB, free: 1.402 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.347e-05/2.526e-05, allocations: 2.312 kB / 273 MB, free: 1.398 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002762/0.002787, allocations: 2.369 MB / 275.3 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001188/0.003975, allocations: 0.8297 MB / 276.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001384/0.004114, allocations: 11.94 kB / 276.2 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002759/0.00439, allocations: 51.56 kB / 276.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001815/0.004571, allocations: 59.55 kB / 276.3 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004039/0.004975, allocations: 183.4 kB / 276.5 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000343/0.005318, allocations: 391.5 kB / 276.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001575/0.005476, allocations: 64.34 kB / 276.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003154/0.005791, allocations: 239.4 kB / 277.1 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001692/0.00596, allocations: 143.6 kB / 277.3 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.251e-05/0.006003, allocations: 36 kB / 277.3 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.112e-05/0.006044, allocations: 36 kB / 277.3 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.364e-05/0.006137, allocations: 107.6 kB / 277.4 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.006e-05/0.006217, allocations: 95.78 kB / 277.5 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002636/0.006481, allocations: 255.1 kB / 277.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.006484, allocations: 0 / 277.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.006485, allocations: 4 kB / 277.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.95e-06/0.00649, allocations: 0 / 277.8 MB, free: 12.54 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.0007958/0.007286, allocations: 0.652 MB / 278.4 MB, free: 11.85 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.007321, allocations: 8.031 kB / 278.5 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.875e-05/0.00741, allocations: 72.7 kB / 278.5 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002966/0.007707, allocations: 213.3 kB / 278.7 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000211/0.007918, allocations: 339.9 kB / 279.1 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.704e-05/0.007965, allocations: 32.36 kB / 279.1 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006343/0.008599, allocations: 466.7 kB / 279.5 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.008614, allocations: 4.188 kB / 279.6 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.761e-05/0.008642, allocations: 20.11 kB / 279.6 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.008652, allocations: 8 kB / 279.6 MB, free: 10.58 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000372/0.009024, allocations: 235.7 kB / 279.8 MB, free: 10.35 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009043/0.009929, allocations: 0.9446 MB / 280.8 MB, free: 9.344 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005996/0.01053, allocations: 344.6 kB / 281.1 MB, free: 8.957 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000175/0.0107, allocations: 142.8 kB / 281.2 MB, free: 8.801 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.874e-05/0.01074, allocations: 12.41 kB / 281.2 MB, free: 8.789 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.74e-05/0.01077, allocations: 49.27 kB / 281.3 MB, free: 8.73 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 2.104e-06/0.01077, allocations: 0 / 281.3 MB, free: 8.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.006819/0.01759, allocations: 2.628 MB / 283.9 MB, free: 6.102 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.015e-05/0.01766, allocations: 149 kB / 284.1 MB, free: 5.926 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001424/0.0178, allocations: 250.5 kB / 284.3 MB, free: 5.66 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.947e-05/0.01786, allocations: 37.7 kB / 284.3 MB, free: 5.617 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.962e-05/0.01793, allocations: 180.6 kB / 284.5 MB, free: 5.434 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/0.01806, allocations: 202.3 kB / 284.7 MB, free: 5.234 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001686/0.01823, allocations: 92 kB / 284.8 MB, free: 5.137 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.01835, allocations: 0.5195 MB / 285.3 MB, free: 4.605 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004114/0.01876, allocations: 313.2 kB / 285.6 MB, free: 4.301 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004625/0.01922, allocations: 436.1 kB / 286.1 MB, free: 3.836 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007774/0.02, allocations: 0.6396 MB / 286.7 MB, free: 3.156 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.02, allocations: 0 / 286.7 MB, free: 3.156 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001032/0.02103, allocations: 0.7901 MB / 287.5 MB, free: 2.359 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.02105, allocations: 7.938 kB / 287.5 MB, free: 2.352 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.02105, allocations: 4 kB / 287.5 MB, free: 2.348 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.02107, allocations: 4 kB / 287.5 MB, free: 2.344 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00057/0.02164, allocations: 159.8 kB / 287.7 MB, free: 2.188 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.808e-06/0.02165, allocations: 7.938 kB / 287.7 MB, free: 2.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003722/0.02202, allocations: 80.06 kB / 287.7 MB, free: 2.102 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.299e-05/0.02207, allocations: 16 kB / 287.8 MB, free: 2.086 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.0001735/0.02224, allocations: 192.4 kB / 288 MB, free: 1.887 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002097/0.02245, allocations: 157.7 kB / 288.1 MB, free: 1.727 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.42e-05/0.02252, allocations: 63.3 kB / 288.2 MB, free: 1.664 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.02253, allocations: 8 kB / 288.2 MB, free: 1.656 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.02253, allocations: 4 kB / 288.2 MB, free: 1.652 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.02254, allocations: 7.969 kB / 288.2 MB, free: 1.645 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1129/0.1354, allocations: 1.507 MB / 289.7 MB, free: 24.78 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-05/0.1354, allocations: 10.41 kB / 289.7 MB, free: 24.78 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005121/0.1359, allocations: 167.4 kB / 289.9 MB, free: 24.78 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.426e-05/0.136, allocations: 12.62 kB / 289.9 MB, free: 24.78 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.428e-05/0.136, allocations: 28.47 kB / 289.9 MB, free: 24.78 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.489e-05/0.136, allocations: 24.02 kB / 289.9 MB, free: 24.78 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.018e-05/0.136, allocations: 14.53 kB / 289.9 MB, free: 24.78 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001103/0.1371, allocations: 1.224 MB / 291.2 MB, free: 23.94 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001457/0.1373, allocations: 88 kB / 291.3 MB, free: 23.94 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.776e-05/0.1373, allocations: 30.75 kB / 291.3 MB, free: 23.94 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002864/0.1376, allocations: 57.91 kB / 291.3 MB, free: 23.94 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000141/0.1378, allocations: 92.16 kB / 291.4 MB, free: 23.94 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.144e-05/0.1378, allocations: 31.62 kB / 291.5 MB, free: 23.94 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.712e-05/0.1379, allocations: 168.5 kB / 291.6 MB, free: 23.82 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1379, allocations: 0 / 291.6 MB, free: 23.82 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004527/0.1383, allocations: 116.7 kB / 291.7 MB, free: 23.82 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.0001441/0.1385, allocations: 137.8 kB / 291.9 MB, free: 23.73 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009011/0.1394, allocations: 0.5853 MB / 292.5 MB, free: 23.71 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.381e-06/0.1394, allocations: 2.406 kB / 292.5 MB, free: 23.71 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000227/0.1396, allocations: 165.6 kB / 292.6 MB, free: 23.7 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006157/0.1402, allocations: 146.8 kB / 292.8 MB, free: 23.7 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001365/0.1416, allocations: 1.136 MB / 293.9 MB, free: 22.88 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001031/0.1417, allocations: 126.3 kB / 294 MB, free: 22.8 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002958/0.142, allocations: 86.45 kB / 294.1 MB, free: 22.77 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002118/0.1422, allocations: 40.97 kB / 294.2 MB, free: 22.77 MB / 266.7 MB Notification: Performance of SimCode: time 8.12e-07/0.1422, allocations: 0 / 294.2 MB, free: 22.77 MB / 266.7 MB Notification: Performance of Templates: time 0.01064/0.1529, allocations: 9.276 MB / 303.4 MB, free: 19.84 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.1209845282137394]