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.0009885/0.0009885, allocations: 91.5 kB / 21.2 MB, free: 3.375 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.001035/0.001035, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 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.9561/0.9561, allocations: 177 MB / 204.8 MB, free: 5.59 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.383e-06/1.383e-06, allocations: 0 / 272.9 MB, free: 1.488 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.833e-05/1.972e-05, allocations: 9.266 kB / 272.9 MB, free: 1.48 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002643/0.002663, allocations: 2.405 MB / 275.3 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001149/0.003812, allocations: 0.8531 MB / 276.1 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001475/0.00396, allocations: 7.938 kB / 276.1 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002683/0.004228, allocations: 63.48 kB / 276.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002051/0.004433, allocations: 67.44 kB / 276.3 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005538/0.004987, allocations: 195.4 kB / 276.5 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003399/0.005327, allocations: 407.4 kB / 276.9 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001412/0.005468, allocations: 71.78 kB / 276.9 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002921/0.00576, allocations: 239.5 kB / 277.2 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001612/0.005921, allocations: 147.6 kB / 277.3 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.19e-05/0.005963, allocations: 36 kB / 277.3 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.619e-05/0.006009, allocations: 36 kB / 277.4 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.667e-05/0.006096, allocations: 111.6 kB / 277.5 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.18e-05/0.006178, allocations: 115.6 kB / 277.6 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002594/0.006437, allocations: 278.9 kB / 277.9 MB, free: 12.46 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.355e-06/0.006439, allocations: 4 kB / 277.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.51e-07/0.00644, allocations: 7.938 kB / 277.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.006445, allocations: 0 / 277.9 MB, free: 12.45 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.0008149/0.00726, allocations: 0.6908 MB / 278.6 MB, free: 11.72 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.007298, allocations: 11.98 kB / 278.6 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001007/0.007398, allocations: 80.7 kB / 278.7 MB, free: 11.63 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000296/0.007694, allocations: 255.9 kB / 278.9 MB, free: 11.35 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002092/0.007904, allocations: 343.9 kB / 279.3 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.435e-05/0.007958, allocations: 28.31 kB / 279.3 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006382/0.008596, allocations: 472.7 kB / 279.7 MB, free: 10.42 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.00861, allocations: 4.125 kB / 279.8 MB, free: 10.41 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.745e-05/0.008637, allocations: 16.12 kB / 279.8 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.769e-06/0.008647, allocations: 4 kB / 279.8 MB, free: 10.39 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003801/0.009027, allocations: 248.6 kB / 280 MB, free: 10.15 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009135/0.009941, allocations: 0.9408 MB / 281 MB, free: 9.152 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005852/0.01053, allocations: 347.4 kB / 281.3 MB, free: 8.766 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001799/0.01071, allocations: 146.8 kB / 281.4 MB, free: 8.605 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.867e-05/0.01074, allocations: 12 kB / 281.4 MB, free: 8.594 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.716e-05/0.01077, allocations: 49.27 kB / 281.5 MB, free: 8.535 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 2.124e-06/0.01077, allocations: 3.938 kB / 281.5 MB, free: 8.531 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.006758/0.01753, allocations: 2.663 MB / 284.2 MB, free: 5.855 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.022e-05/0.0176, allocations: 149.1 kB / 284.3 MB, free: 5.68 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001741/0.01778, allocations: 292.3 kB / 284.6 MB, free: 5.379 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.983e-05/0.01784, allocations: 45.64 kB / 284.6 MB, free: 5.328 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.95e-05/0.01792, allocations: 200.4 kB / 284.8 MB, free: 5.125 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001251/0.01804, allocations: 194.3 kB / 285 MB, free: 4.934 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001719/0.01821, allocations: 99.95 kB / 285.1 MB, free: 4.828 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.01833, allocations: 0.5196 MB / 285.6 MB, free: 4.297 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004101/0.01874, allocations: 325.2 kB / 286 MB, free: 3.98 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004515/0.01919, allocations: 428.1 kB / 286.4 MB, free: 3.523 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007471/0.01994, allocations: 0.6357 MB / 287 MB, free: 2.852 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.01994, allocations: 0 / 287 MB, free: 2.852 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001015/0.02096, allocations: 0.7901 MB / 287.8 MB, free: 2.055 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.02097, allocations: 8 kB / 287.8 MB, free: 2.047 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.02098, allocations: 320 / 287.8 MB, free: 2.047 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.021, allocations: 8 kB / 287.8 MB, free: 2.039 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005688/0.02157, allocations: 163.7 kB / 288 MB, free: 1.879 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.794e-06/0.02157, allocations: 4.219 kB / 288 MB, free: 1.875 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003672/0.02194, allocations: 79.91 kB / 288.1 MB, free: 1.797 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.596e-05/0.02199, allocations: 23.98 kB / 288.1 MB, free: 1.773 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.0001769/0.02216, allocations: 192.8 kB / 288.3 MB, free: 1.574 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002071/0.02237, allocations: 165.2 kB / 288.4 MB, free: 1.406 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.272e-05/0.02244, allocations: 67.61 kB / 288.5 MB, free: 1.344 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.742e-06/0.02245, allocations: 8 kB / 288.5 MB, free: 1.336 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.02246, allocations: 4 kB / 288.5 MB, free: 1.332 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.02246, allocations: 3.984 kB / 288.5 MB, free: 1.328 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001875/0.02434, allocations: 1.523 MB / 290 MB, free: 15.59 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/0.02434, allocations: 11.94 kB / 290 MB, free: 15.58 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003477/0.02469, allocations: 172.5 kB / 290.2 MB, free: 15.41 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.438e-06/0.0247, allocations: 20 kB / 290.2 MB, free: 15.39 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.147e-05/0.02473, allocations: 20 kB / 290.3 MB, free: 15.37 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.378e-06/0.02474, allocations: 23.92 kB / 290.3 MB, free: 15.35 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.789e-06/0.02475, allocations: 19.88 kB / 290.3 MB, free: 15.33 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009647/0.02572, allocations: 1.236 MB / 291.5 MB, free: 13.89 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001396/0.02586, allocations: 111.6 kB / 291.6 MB, free: 13.78 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.625e-05/0.0259, allocations: 27.98 kB / 291.7 MB, free: 13.75 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002507/0.02615, allocations: 59.94 kB / 291.7 MB, free: 13.69 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/0.02628, allocations: 87.64 kB / 291.8 MB, free: 13.61 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.733e-05/0.02631, allocations: 31.94 kB / 291.8 MB, free: 13.57 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.883e-05/0.02641, allocations: 205.1 kB / 292 MB, free: 13.38 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02641, allocations: 0 / 292 MB, free: 13.38 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003669/0.02677, allocations: 116 kB / 292.2 MB, free: 13.26 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.0001085/0.02688, allocations: 139 kB / 292.3 MB, free: 13.11 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007337/0.02762, allocations: 0.578 MB / 292.9 MB, free: 12.53 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.02762, allocations: 0 / 292.9 MB, free: 12.53 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002108/0.02783, allocations: 174.7 kB / 293 MB, free: 12.36 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005746/0.0284, allocations: 151 kB / 293.2 MB, free: 12.21 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001385/0.02979, allocations: 1.18 MB / 294.4 MB, free: 10.82 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.023e-05/0.02988, allocations: 142.7 kB / 294.5 MB, free: 10.66 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002543/0.03013, allocations: 87.2 kB / 294.6 MB, free: 10.57 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000202/0.03034, allocations: 40.5 kB / 294.6 MB, free: 10.54 MB / 282.7 MB Notification: Performance of SimCode: time 8.91e-07/0.03034, allocations: 0 / 294.6 MB, free: 10.54 MB / 282.7 MB Notification: Performance of Templates: time 0.0101/0.04044, allocations: 9.531 MB / 304.2 MB, free: 1.074 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: 2.9458790877833962]