Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 89.25 kB / 16.65 MB, free: 6.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00141/0.00141, allocations: 181.8 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.486/1.486, allocations: 223.3 MB / 241.6 MB, free: 192 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003032/0.0003031, allocations: 4.75 kB / 301.4 MB, free: 6.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1124, allocations: 50.42 MB / 351.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003049/0.1154, allocations: 2.057 MB / 353.9 MB, free: 1.645 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001635/0.1171, allocations: 0.8106 MB / 354.7 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002643/0.1174, allocations: 7.938 kB / 354.7 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003097/0.1177, allocations: 43.77 kB / 354.7 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002881/0.118, allocations: 51.67 kB / 354.8 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006502/0.1187, allocations: 185.6 kB / 355 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004781/0.1192, allocations: 375.5 kB / 355.3 MB, free: 184 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002207/0.1194, allocations: 87.39 kB / 355.4 MB, free: 96 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003111/0.1197, allocations: 143.4 kB / 355.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002919/0.12, allocations: 163.2 kB / 355.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.346e-05/0.1201, allocations: 16 kB / 355.7 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.549e-05/0.1201, allocations: 16 kB / 355.7 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00012/0.1203, allocations: 91.69 kB / 355.8 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001645/0.1204, allocations: 172.8 kB / 356 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003618/0.1208, allocations: 331 kB / 356.3 MB, free: 15.17 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1208, allocations: 0 / 356.3 MB, free: 15.17 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1208, allocations: 4 kB / 356.3 MB, free: 15.17 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.748e-06/0.1208, allocations: 0 / 356.3 MB, free: 15.17 MB / 302.1 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.00122/0.1221, allocations: 0.6237 MB / 357 MB, free: 14.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.1221, allocations: 8.031 kB / 357 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001025/0.1222, allocations: 52.47 kB / 357 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003713/0.1226, allocations: 303.1 kB / 357.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002106/0.1228, allocations: 146.3 kB / 357.5 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.726e-05/0.1229, allocations: 24.38 kB / 357.5 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001241/0.1241, allocations: 0.5972 MB / 358.1 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.938e-05/0.1242, allocations: 0 / 358.1 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.468e-05/0.1242, allocations: 12 kB / 358.1 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.1242, allocations: 4 kB / 358.1 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001433/0.1257, allocations: 0.5347 MB / 358.6 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001535/0.1272, allocations: 1.037 MB / 359.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001614/0.1288, allocations: 0.5219 MB / 360.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006653/0.1295, allocations: 278.6 kB / 360.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.527e-05/0.1296, allocations: 8.141 kB / 360.5 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.061e-05/0.1296, allocations: 42.5 kB / 360.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.933e-06/0.1296, allocations: 0 / 360.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.04047/0.1701, allocations: 6.792 MB / 367.3 MB, free: 3.918 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/0.1703, allocations: 153.2 kB / 367.4 MB, free: 3.738 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003098/0.1706, allocations: 258.5 kB / 367.7 MB, free: 3.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.633e-05/0.1707, allocations: 37.7 kB / 367.7 MB, free: 3.438 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001904/0.1709, allocations: 149.5 kB / 367.9 MB, free: 3.289 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002235/0.1711, allocations: 193.2 kB / 368.1 MB, free: 3.098 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.1712, allocations: 57.69 kB / 368.1 MB, free: 3.035 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.1714, allocations: 350.8 kB / 368.5 MB, free: 2.684 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001723/0.1731, allocations: 0.65 MB / 369.1 MB, free: 2.035 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0019/0.175, allocations: 0.8354 MB / 370 MB, free: 1.125 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1924/0.3675, allocations: 1.32 MB / 371.3 MB, free: 25.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.157e-06/0.3675, allocations: 1.594 kB / 371.3 MB, free: 25.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.004123/0.3716, allocations: 1.477 MB / 372.8 MB, free: 25.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.94e-05/0.3717, allocations: 8.422 kB / 372.8 MB, free: 25.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.578e-05/0.3717, allocations: 5.656 kB / 372.8 MB, free: 25.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.163e-05/0.3718, allocations: 9.438 kB / 372.8 MB, free: 25.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001405/0.3732, allocations: 232.8 kB / 373 MB, free: 25.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.039e-05/0.3732, allocations: 9.609 kB / 373 MB, free: 25.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001018/0.3742, allocations: 125.9 kB / 373.1 MB, free: 25.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.549e-05/0.3743, allocations: 32.77 kB / 373.2 MB, free: 25.01 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,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 (83): * Single equations (assignments): 83 * 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.0003637/0.3747, allocations: 189.6 kB / 373.4 MB, free: 24.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000362/0.3751, allocations: 158.5 kB / 373.5 MB, free: 24.85 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001829/0.3752, allocations: 67.22 kB / 373.6 MB, free: 24.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.3753, allocations: 11.8 kB / 373.6 MB, free: 24.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.3753, allocations: 2.25 kB / 373.6 MB, free: 24.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.939e-06/0.3753, allocations: 4.891 kB / 373.6 MB, free: 24.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004828/0.3801, allocations: 2.308 MB / 375.9 MB, free: 23.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.511e-05/0.3802, allocations: 10.5 kB / 375.9 MB, free: 23.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007931/0.381, allocations: 205.1 kB / 376.1 MB, free: 23.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.852e-05/0.381, allocations: 17.12 kB / 376.1 MB, free: 23.81 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.778e-05/0.3811, allocations: 28.2 kB / 376.2 MB, free: 23.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.582e-05/0.3811, allocations: 21.62 kB / 376.2 MB, free: 23.79 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.728e-06/0.3811, allocations: 18.94 kB / 376.2 MB, free: 23.79 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003291/0.3844, allocations: 1.675 MB / 377.9 MB, free: 22.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002559/0.3847, allocations: 181.4 kB / 378 MB, free: 22.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.616e-05/0.3847, allocations: 31.48 kB / 378.1 MB, free: 22.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006357/0.3854, allocations: 96.31 kB / 378.2 MB, free: 22.65 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002109/0.3856, allocations: 94.67 kB / 378.3 MB, free: 22.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.942e-05/0.3857, allocations: 30.39 kB / 378.3 MB, free: 22.61 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000213/0.3859, allocations: 185.8 kB / 378.5 MB, free: 22.51 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3859, allocations: 0 / 378.5 MB, free: 22.51 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007781/0.3867, allocations: 124.8 kB / 378.6 MB, free: 22.49 MB / 302.1 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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.0001656/0.3868, allocations: 147.8 kB / 378.7 MB, free: 22.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002952/0.3898, allocations: 1.19 MB / 379.9 MB, free: 21.95 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.652e-06/0.3898, allocations: 2 kB / 379.9 MB, free: 21.95 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001143/0.391, allocations: 383.2 kB / 380.3 MB, free: 21.85 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001159/0.3921, allocations: 156.7 kB / 380.5 MB, free: 21.8 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002363/0.3945, allocations: 1.452 MB / 381.9 MB, free: 20.72 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003092/0.3948, allocations: 0.8308 MB / 382.7 MB, free: 20.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006078/0.3955, allocations: 93.88 kB / 382.8 MB, free: 19.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002878/0.3958, allocations: 40 kB / 382.9 MB, free: 19.97 MB / 302.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3958, allocations: 0 / 382.9 MB, free: 19.97 MB / 302.1 MB Notification: Performance of Templates: time 0.01267/0.4084, allocations: 7.72 MB / 390.6 MB, free: 16.95 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches