Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 183.3 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.281/1.281, allocations: 225.7 MB / 243.2 MB, free: 8.461 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008606/0.0008607, allocations: 91.45 kB / 294.4 MB, free: 9.492 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002825/0.0002827, allocations: 4 kB / 354.2 MB, free: 13.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2464, allocations: 50.42 MB / 404.6 MB, free: 31.31 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002307/0.2488, allocations: 1.984 MB / 406.6 MB, free: 29.31 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001203/0.25, allocations: 0.7828 MB / 407.3 MB, free: 28.52 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001949/0.2503, allocations: 7.938 kB / 407.3 MB, free: 28.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002641/0.2505, allocations: 44.27 kB / 407.4 MB, free: 28.47 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001886/0.2507, allocations: 53.02 kB / 407.4 MB, free: 28.42 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005224/0.2513, allocations: 168.8 kB / 407.6 MB, free: 28.26 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003201/0.2516, allocations: 377.2 kB / 408 MB, free: 27.89 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002083/0.2518, allocations: 90.22 kB / 408.1 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001904/0.252, allocations: 143.4 kB / 408.2 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002002/0.2522, allocations: 163.2 kB / 408.4 MB, free: 27.51 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.851e-05/0.2523, allocations: 16 kB / 408.4 MB, free: 27.49 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.897e-05/0.2523, allocations: 19.94 kB / 408.4 MB, free: 27.47 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.347e-05/0.2524, allocations: 79.72 kB / 408.5 MB, free: 27.39 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001171/0.2525, allocations: 176.8 kB / 408.7 MB, free: 27.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002255/0.2528, allocations: 332.3 kB / 409 MB, free: 26.89 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2528, allocations: 0 / 409 MB, free: 26.89 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2528, allocations: 0.7812 kB / 409 MB, free: 26.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.2528, allocations: 0 / 409 MB, free: 26.89 MB / 298.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.0009705/0.2538, allocations: 0.6323 MB / 409.6 MB, free: 26.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.2538, allocations: 8.031 kB / 409.6 MB, free: 26.2 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.819e-05/0.2539, allocations: 44.47 kB / 409.7 MB, free: 26.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002979/0.2542, allocations: 303.1 kB / 410 MB, free: 25.83 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001738/0.2544, allocations: 146.3 kB / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.157e-05/0.2544, allocations: 32.36 kB / 410.1 MB, free: 25.63 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009632/0.2554, allocations: 0.5767 MB / 410.7 MB, free: 25.03 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.2554, allocations: 7.906 kB / 410.7 MB, free: 25.02 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.164e-05/0.2555, allocations: 12 kB / 410.7 MB, free: 25.01 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.2555, allocations: 8 kB / 410.7 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001199/0.2567, allocations: 0.5394 MB / 411.3 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001336/0.2581, allocations: 1.049 MB / 412.3 MB, free: 23.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001286/0.2594, allocations: 0.5102 MB / 412.8 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005392/0.2599, allocations: 276.4 kB / 413.1 MB, free: 22.51 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.504e-05/0.26, allocations: 4 kB / 413.1 MB, free: 22.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.181e-05/0.26, allocations: 42.56 kB / 413.1 MB, free: 22.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 2.344e-06/0.26, allocations: 0 / 413.1 MB, free: 22.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.03548/0.2955, allocations: 6.794 MB / 419.9 MB, free: 15.64 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.226e-05/0.2956, allocations: 149 kB / 420.1 MB, free: 15.47 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002652/0.2959, allocations: 254.6 kB / 420.3 MB, free: 15.21 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.683e-05/0.296, allocations: 37.7 kB / 420.4 MB, free: 15.17 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.489e-05/0.296, allocations: 153.9 kB / 420.5 MB, free: 15.02 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001362/0.2962, allocations: 189.3 kB / 420.7 MB, free: 14.83 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.058e-05/0.2962, allocations: 15.94 kB / 420.7 MB, free: 14.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.876e-05/0.2963, allocations: 346.8 kB / 421.1 MB, free: 14.47 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001269/0.2976, allocations: 0.6539 MB / 421.7 MB, free: 13.82 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001338/0.2989, allocations: 0.8315 MB / 422.5 MB, free: 12.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002486/0.3014, allocations: 1.318 MB / 423.9 MB, free: 11.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.3015, allocations: 4 kB / 423.9 MB, free: 11.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.002917/0.3044, allocations: 1.472 MB / 425.3 MB, free: 10.03 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.055e-05/0.3044, allocations: 8 kB / 425.3 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.57e-05/0.3045, allocations: 7.984 kB / 425.4 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.83e-05/0.3045, allocations: 8 kB / 425.4 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001234/0.3057, allocations: 231.7 kB / 425.6 MB, free: 9.781 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.52e-05/0.3058, allocations: 8 kB / 425.6 MB, free: 9.773 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000875/0.3066, allocations: 131.7 kB / 425.7 MB, free: 9.645 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.399e-05/0.3067, allocations: 24 kB / 425.7 MB, free: 9.621 MB / 298.7 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.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 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.0002884/0.307, allocations: 201.5 kB / 425.9 MB, free: 9.414 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002625/0.3073, allocations: 157.1 kB / 426.1 MB, free: 9.254 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000146/0.3074, allocations: 71.61 kB / 426.2 MB, free: 9.184 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.107e-06/0.3075, allocations: 8.234 kB / 426.2 MB, free: 9.176 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/0.3075, allocations: 0 / 426.2 MB, free: 9.176 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.3075, allocations: 7.969 kB / 426.2 MB, free: 9.168 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003905/0.3114, allocations: 2.304 MB / 428.5 MB, free: 6.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.584e-05/0.3115, allocations: 12.94 kB / 428.5 MB, free: 6.668 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000801/0.3123, allocations: 203.7 kB / 428.7 MB, free: 6.469 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.391e-05/0.3123, allocations: 12 kB / 428.7 MB, free: 6.457 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.069e-05/0.3124, allocations: 24 kB / 428.7 MB, free: 6.434 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-05/0.3124, allocations: 23.92 kB / 428.8 MB, free: 6.41 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.119e-05/0.3124, allocations: 19.94 kB / 428.8 MB, free: 6.391 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0028/0.3152, allocations: 1.67 MB / 430.4 MB, free: 4.562 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002559/0.3155, allocations: 176.7 kB / 430.6 MB, free: 4.371 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.248e-05/0.3156, allocations: 27.98 kB / 430.6 MB, free: 4.344 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005554/0.3161, allocations: 99.92 kB / 430.7 MB, free: 4.246 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002037/0.3163, allocations: 95.66 kB / 430.8 MB, free: 4.152 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.228e-05/0.3164, allocations: 32 kB / 430.9 MB, free: 4.121 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001751/0.3166, allocations: 182 kB / 431 MB, free: 3.945 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3166, allocations: 0 / 431 MB, free: 3.945 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006616/0.3172, allocations: 124 kB / 431.2 MB, free: 3.824 MB / 298.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: 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.0001776/0.3174, allocations: 154.9 kB / 431.3 MB, free: 3.664 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00239/0.3198, allocations: 1.182 MB / 432.5 MB, free: 2.48 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.762e-06/0.3198, allocations: 0 / 432.5 MB, free: 2.48 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008528/0.3207, allocations: 379.2 kB / 432.9 MB, free: 2.113 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001127/0.3218, allocations: 152.7 kB / 433 MB, free: 1.965 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002406/0.3243, allocations: 1.456 MB / 434.5 MB, free: 352 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005202/0.3248, allocations: 0.8327 MB / 435.3 MB, free: 15.49 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006882/0.3255, allocations: 92.16 kB / 435.4 MB, free: 15.4 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002846/0.3258, allocations: 47.42 kB / 435.4 MB, free: 15.36 MB / 314.7 MB Notification: Performance of SimCode: time 1.363e-06/0.3258, allocations: 0 / 435.4 MB, free: 15.36 MB / 314.7 MB Notification: Performance of Templates: time 0.01462/0.3404, allocations: 7.723 MB / 443.2 MB, free: 7.641 MB / 314.7 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","../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches