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.001581/0.001581, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.001069/0.001069, allocations: 167.7 kB / 24.99 MB, free: 8.219 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.9886/0.9886, allocations: 177 MB / 205.2 MB, free: 5.527 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 2.053e-06/2.053e-06, allocations: 0 / 273 MB, free: 1.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.128e-05/3.333e-05, allocations: 2.312 kB / 273 MB, free: 1.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003804/0.003838, allocations: 2.368 MB / 275.3 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001454/0.005291, allocations: 0.8219 MB / 276.2 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001721/0.005463, allocations: 15.94 kB / 276.2 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003327/0.005796, allocations: 43.58 kB / 276.2 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002247/0.006021, allocations: 59.55 kB / 276.3 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004618/0.006482, allocations: 183.4 kB / 276.4 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004026/0.006885, allocations: 379.5 kB / 276.8 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001919/0.007077, allocations: 92.19 kB / 276.9 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003971/0.007474, allocations: 231.5 kB / 277.1 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002168/0.007691, allocations: 147.6 kB / 277.3 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.49e-05/0.007746, allocations: 36 kB / 277.3 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.553e-05/0.007791, allocations: 32 kB / 277.3 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001023/0.007894, allocations: 99.69 kB / 277.4 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001052/0.007999, allocations: 107.7 kB / 277.5 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003317/0.008331, allocations: 259.1 kB / 277.8 MB, free: 12.88 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.008334, allocations: 0 / 277.8 MB, free: 12.88 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.008335, allocations: 0 / 277.8 MB, free: 12.88 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.008341, allocations: 4 kB / 277.8 MB, free: 12.87 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.0009941/0.009335, allocations: 0.6365 MB / 278.4 MB, free: 12.2 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.009372, allocations: 15.98 kB / 278.5 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001206/0.009493, allocations: 76.7 kB / 278.5 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005124/0.01001, allocations: 224.5 kB / 278.8 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002363/0.01024, allocations: 339.9 kB / 279.1 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.685e-05/0.0103, allocations: 28.38 kB / 279.1 MB, free: 11.44 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000833/0.01113, allocations: 472.7 kB / 279.6 MB, free: 10.94 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.738e-05/0.01115, allocations: 192 / 279.6 MB, free: 10.94 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.702e-05/0.01119, allocations: 20.12 kB / 279.6 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.231e-05/0.0112, allocations: 4 kB / 279.6 MB, free: 10.91 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005433/0.01174, allocations: 243 kB / 279.8 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001295/0.01304, allocations: 0.9369 MB / 280.8 MB, free: 9.68 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007653/0.0138, allocations: 344.6 kB / 281.1 MB, free: 9.293 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000232/0.01403, allocations: 142.8 kB / 281.2 MB, free: 9.137 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.283e-05/0.01408, allocations: 8.406 kB / 281.3 MB, free: 9.129 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.122e-05/0.01411, allocations: 49.27 kB / 281.3 MB, free: 9.07 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 2.434e-06/0.01411, allocations: 0 / 281.3 MB, free: 9.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.009051/0.02316, allocations: 2.636 MB / 283.9 MB, free: 6.43 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.398e-05/0.02326, allocations: 149 kB / 284.1 MB, free: 6.254 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002047/0.02346, allocations: 246.5 kB / 284.3 MB, free: 5.992 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.315e-05/0.02352, allocations: 37.7 kB / 284.4 MB, free: 5.949 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.649e-05/0.02361, allocations: 184.5 kB / 284.5 MB, free: 5.762 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001542/0.02376, allocations: 198.3 kB / 284.7 MB, free: 5.566 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002313/0.024, allocations: 96 kB / 284.8 MB, free: 5.465 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.02413, allocations: 0.5157 MB / 285.3 MB, free: 4.938 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005443/0.02467, allocations: 317.2 kB / 285.7 MB, free: 4.629 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000595/0.02527, allocations: 428.1 kB / 286.1 MB, free: 4.172 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001007/0.02628, allocations: 0.6435 MB / 286.7 MB, free: 3.488 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.02628, allocations: 4 kB / 286.7 MB, free: 3.484 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001347/0.02763, allocations: 0.7786 MB / 287.5 MB, free: 2.699 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/0.02765, allocations: 8 kB / 287.5 MB, free: 2.691 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.02766, allocations: 320 / 287.5 MB, free: 2.691 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.02768, allocations: 8 kB / 287.5 MB, free: 2.684 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007679/0.02844, allocations: 163.7 kB / 287.7 MB, free: 2.523 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.073e-05/0.02845, allocations: 7.938 kB / 287.7 MB, free: 2.516 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004804/0.02893, allocations: 79.84 kB / 287.8 MB, free: 2.438 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.924e-05/0.02899, allocations: 24.08 kB / 287.8 MB, free: 2.414 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.0002072/0.0292, allocations: 184.5 kB / 288 MB, free: 2.223 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002867/0.02949, allocations: 161.3 kB / 288.1 MB, free: 2.059 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001044/0.02959, allocations: 67.23 kB / 288.2 MB, free: 1.992 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.0296, allocations: 8 kB / 288.2 MB, free: 1.984 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.02961, allocations: 0 / 288.2 MB, free: 1.984 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.877e-06/0.02961, allocations: 7.984 kB / 288.2 MB, free: 1.977 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00232/0.03193, allocations: 1.511 MB / 289.7 MB, free: 256 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.127e-06/0.03194, allocations: 12 kB / 289.7 MB, free: 244 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004802/0.03242, allocations: 167.8 kB / 289.9 MB, free: 76 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.176e-05/0.03244, allocations: 12 kB / 289.9 MB, free: 64 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.137e-05/0.03248, allocations: 31.92 kB / 289.9 MB, free: 32 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.254e-05/0.03249, allocations: 20.41 kB / 290 MB, free: 12 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-05/0.03251, allocations: 15.98 kB / 290 MB, free: 15.99 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001249/0.03376, allocations: 1.224 MB / 291.2 MB, free: 14.57 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001501/0.03391, allocations: 91.64 kB / 291.3 MB, free: 14.48 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.895e-05/0.03397, allocations: 27.98 kB / 291.3 MB, free: 14.45 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003749/0.03434, allocations: 67.97 kB / 291.4 MB, free: 14.38 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001592/0.0345, allocations: 83.64 kB / 291.5 MB, free: 14.3 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.532e-05/0.03455, allocations: 39.88 kB / 291.5 MB, free: 14.26 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.436e-05/0.03464, allocations: 169.1 kB / 291.7 MB, free: 14.1 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03464, allocations: 0 / 291.7 MB, free: 14.1 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005161/0.03516, allocations: 116 kB / 291.8 MB, free: 13.98 MB / 282.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.0001389/0.0353, allocations: 127.1 kB / 291.9 MB, free: 13.85 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009394/0.03624, allocations: 0.5936 MB / 292.5 MB, free: 13.26 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.247e-06/0.03624, allocations: 0 / 292.5 MB, free: 13.26 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002585/0.0365, allocations: 165.7 kB / 292.7 MB, free: 13.09 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007655/0.03726, allocations: 142.4 kB / 292.8 MB, free: 12.96 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00174/0.039, allocations: 1.129 MB / 293.9 MB, free: 11.61 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001185/0.03912, allocations: 134.8 kB / 294.1 MB, free: 11.46 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004577/0.03958, allocations: 83.19 kB / 294.1 MB, free: 11.38 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002502/0.03983, allocations: 40.48 kB / 294.2 MB, free: 11.34 MB / 282.7 MB Notification: Performance of SimCode: time 9.52e-07/0.03983, allocations: 0 / 294.2 MB, free: 11.34 MB / 282.7 MB Notification: Performance of Templates: time 0.01176/0.05159, allocations: 8.79 MB / 303 MB, free: 2.605 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.169758283998817]