Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.0009905/0.0009905, allocations: 79.69 kB / 21.7 MB, free: 2.852 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.001079/0.001079, allocations: 161.1 kB / 24.99 MB, free: 8.801 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.9801/0.9801, allocations: 177 MB / 205.2 MB, free: 5.582 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.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.944e-06/1.944e-06, allocations: 0 / 273 MB, free: 1.777 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.073e-05/3.267e-05, allocations: 6.312 kB / 273 MB, free: 1.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004047/0.00408, allocations: 2.381 MB / 275.4 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001579/0.005659, allocations: 0.8492 MB / 276.2 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001964/0.005855, allocations: 11.88 kB / 276.2 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000293/0.006148, allocations: 55.52 kB / 276.3 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002617/0.00641, allocations: 75.47 kB / 276.3 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005555/0.006965, allocations: 203.3 kB / 276.5 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004202/0.007386, allocations: 399.5 kB / 276.9 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001537/0.007539, allocations: 75.78 kB / 277 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003027/0.007842, allocations: 239.5 kB / 277.2 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001611/0.008003, allocations: 147.5 kB / 277.4 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.165e-05/0.008045, allocations: 40 kB / 277.4 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.423e-05/0.008079, allocations: 36 kB / 277.5 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.259e-05/0.008171, allocations: 115.6 kB / 277.6 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.734e-05/0.008259, allocations: 103.7 kB / 277.7 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002673/0.008526, allocations: 286.8 kB / 278 MB, free: 12.76 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.008529, allocations: 3.984 kB / 278 MB, free: 12.76 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.00853, allocations: 4 kB / 278 MB, free: 12.75 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.008535, allocations: 0 / 278 MB, free: 12.75 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0007883/0.009323, allocations: 0.6869 MB / 278.6 MB, free: 12.03 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.009357, allocations: 15.98 kB / 278.7 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.103e-05/0.009448, allocations: 76.64 kB / 278.7 MB, free: 11.94 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002881/0.009736, allocations: 259.9 kB / 279 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002026/0.009939, allocations: 339.9 kB / 279.3 MB, free: 11.26 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.965e-05/0.009989, allocations: 36.38 kB / 279.4 MB, free: 11.22 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006438/0.01063, allocations: 472.7 kB / 279.8 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.01065, allocations: 192 / 279.8 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.665e-05/0.01067, allocations: 16.12 kB / 279.8 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.01068, allocations: 4 kB / 279.8 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003779/0.01106, allocations: 244.6 kB / 280.1 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008964/0.01196, allocations: 0.9447 MB / 281 MB, free: 9.461 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005878/0.01254, allocations: 351.4 kB / 281.4 MB, free: 9.07 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001928/0.01274, allocations: 150.8 kB / 281.5 MB, free: 8.906 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.536e-05/0.01277, allocations: 8 kB / 281.5 MB, free: 8.898 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.907e-05/0.0128, allocations: 49.27 kB / 281.6 MB, free: 8.84 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.853e-06/0.0128, allocations: 0 / 281.6 MB, free: 8.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.007206/0.02001, allocations: 2.663 MB / 284.2 MB, free: 6.164 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.834e-05/0.0201, allocations: 160.9 kB / 284.4 MB, free: 5.977 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002124/0.02031, allocations: 292.3 kB / 284.7 MB, free: 5.676 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.019e-05/0.02037, allocations: 37.7 kB / 284.7 MB, free: 5.633 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.94e-05/0.02046, allocations: 200.6 kB / 284.9 MB, free: 5.43 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001366/0.0206, allocations: 194.3 kB / 285.1 MB, free: 5.238 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001808/0.02078, allocations: 103.9 kB / 285.2 MB, free: 5.129 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.02091, allocations: 0.5117 MB / 285.7 MB, free: 4.605 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004454/0.02136, allocations: 325.2 kB / 286 MB, free: 4.289 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004805/0.02184, allocations: 428.1 kB / 286.4 MB, free: 3.832 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008006/0.02264, allocations: 0.6435 MB / 287.1 MB, free: 3.152 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.02264, allocations: 0 / 287.1 MB, free: 3.152 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001057/0.0237, allocations: 0.7823 MB / 287.9 MB, free: 2.363 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.02372, allocations: 12.16 kB / 287.9 MB, free: 2.352 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.02372, allocations: 4.312 kB / 287.9 MB, free: 2.348 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.02374, allocations: 4 kB / 287.9 MB, free: 2.344 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005905/0.02433, allocations: 163.7 kB / 288.1 MB, free: 2.184 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.135e-05/0.02434, allocations: 11.94 kB / 288.1 MB, free: 2.172 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003705/0.02471, allocations: 67.92 kB / 288.1 MB, free: 2.105 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.532e-05/0.02476, allocations: 27.97 kB / 288.2 MB, free: 2.078 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.0001816/0.02494, allocations: 192.5 kB / 288.3 MB, free: 1.879 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002265/0.02516, allocations: 161.3 kB / 288.5 MB, free: 1.715 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.519e-05/0.02525, allocations: 67.61 kB / 288.6 MB, free: 1.652 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.02526, allocations: 8 kB / 288.6 MB, free: 1.645 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.02526, allocations: 0 / 288.6 MB, free: 1.645 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.02527, allocations: 7.984 kB / 288.6 MB, free: 1.637 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001951/0.02722, allocations: 1.531 MB / 290.1 MB, free: 15.89 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/0.02723, allocations: 8 kB / 290.1 MB, free: 15.88 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003563/0.02758, allocations: 163.8 kB / 290.3 MB, free: 15.72 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.506e-06/0.02759, allocations: 12 kB / 290.3 MB, free: 15.71 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.216e-05/0.02762, allocations: 31.94 kB / 290.3 MB, free: 15.68 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.1e-05/0.02763, allocations: 19.94 kB / 290.3 MB, free: 15.66 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.702e-06/0.02764, allocations: 15.94 kB / 290.4 MB, free: 15.64 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001028/0.02867, allocations: 1.24 MB / 291.6 MB, free: 14.2 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001349/0.0288, allocations: 107.6 kB / 291.7 MB, free: 14.09 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.807e-05/0.02885, allocations: 27.98 kB / 291.7 MB, free: 14.07 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002694/0.02912, allocations: 59.98 kB / 291.8 MB, free: 14.01 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001312/0.02925, allocations: 95.62 kB / 291.9 MB, free: 13.91 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-05/0.02928, allocations: 35.88 kB / 291.9 MB, free: 13.88 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001053/0.02939, allocations: 201.1 kB / 292.1 MB, free: 13.68 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02939, allocations: 0 / 292.1 MB, free: 13.68 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003853/0.02977, allocations: 116 kB / 292.2 MB, free: 13.57 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.0001148/0.02989, allocations: 131.6 kB / 292.4 MB, free: 13.43 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000791/0.03068, allocations: 0.5819 MB / 292.9 MB, free: 12.84 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.03068, allocations: 4 kB / 292.9 MB, free: 12.84 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000214/0.03089, allocations: 174.4 kB / 293.1 MB, free: 12.66 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006006/0.03149, allocations: 151 kB / 293.3 MB, free: 12.52 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001458/0.03295, allocations: 1.175 MB / 294.4 MB, free: 11.13 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.693e-05/0.03305, allocations: 138.7 kB / 294.6 MB, free: 10.98 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002974/0.03335, allocations: 99.12 kB / 294.7 MB, free: 10.88 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001911/0.03354, allocations: 36.5 kB / 294.7 MB, free: 10.84 MB / 282.7 MB Notification: Performance of SimCode: time 1.012e-06/0.03354, allocations: 4 kB / 294.7 MB, free: 10.84 MB / 282.7 MB Notification: Performance of Templates: time 0.009594/0.04313, allocations: 9.041 MB / 303.8 MB, free: 1.871 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.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.1909460672177374]