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.SuperSampled.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.SuperSampled,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.SuperSampled") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,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.SuperSampled") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 183.4 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.36/1.36, allocations: 225.7 MB / 243.2 MB, free: 10.25 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.00105/0.00105, allocations: 99.44 kB / 294.4 MB, free: 9.742 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003179/0.0003185, allocations: 7.938 kB / 354.1 MB, free: 13.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2278/0.2282, allocations: 50.42 MB / 404.6 MB, free: 31.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.001969/0.2302, allocations: 1.946 MB / 406.5 MB, free: 29.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009341/0.2312, allocations: 0.7243 MB / 407.2 MB, free: 28.7 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001083/0.2313, allocations: 9.156 kB / 407.2 MB, free: 28.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002158/0.2315, allocations: 39.77 kB / 407.3 MB, free: 28.65 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001519/0.2317, allocations: 44.95 kB / 407.3 MB, free: 28.61 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000368/0.232, allocations: 148.7 kB / 407.5 MB, free: 28.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002464/0.2323, allocations: 353 kB / 407.8 MB, free: 28.12 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001455/0.2325, allocations: 95.09 kB / 407.9 MB, free: 28.03 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001453/0.2326, allocations: 131.5 kB / 408 MB, free: 27.9 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001526/0.2328, allocations: 159.3 kB / 408.2 MB, free: 27.75 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.965e-05/0.2328, allocations: 16 kB / 408.2 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.452e-05/0.2329, allocations: 16 kB / 408.2 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.402e-05/0.2329, allocations: 71.78 kB / 408.3 MB, free: 27.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.779e-05/0.233, allocations: 153 kB / 408.4 MB, free: 27.49 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001935/0.2332, allocations: 292.5 kB / 408.7 MB, free: 27.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2332, allocations: 7.922 kB / 408.7 MB, free: 27.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2333, allocations: 0 / 408.7 MB, free: 27.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.2333, allocations: 0 / 408.7 MB, free: 27.2 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.0008332/0.2341, allocations: 0.5739 MB / 409.3 MB, free: 26.57 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.911e-05/0.2341, allocations: 12.03 kB / 409.3 MB, free: 26.56 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.75e-05/0.2342, allocations: 36.56 kB / 409.4 MB, free: 26.52 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002296/0.2344, allocations: 271 kB / 409.6 MB, free: 26.22 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001501/0.2346, allocations: 146.2 kB / 409.8 MB, free: 26.06 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.697e-05/0.2346, allocations: 32.38 kB / 409.8 MB, free: 26.03 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008933/0.2355, allocations: 0.5531 MB / 410.3 MB, free: 25.45 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.2356, allocations: 11.91 kB / 410.4 MB, free: 25.44 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.748e-05/0.2356, allocations: 8 kB / 410.4 MB, free: 25.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.2356, allocations: 8 kB / 410.4 MB, free: 25.43 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00109/0.2367, allocations: 0.5347 MB / 410.9 MB, free: 24.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001106/0.2378, allocations: 1.018 MB / 411.9 MB, free: 23.8 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001246/0.2391, allocations: 0.522 MB / 412.4 MB, free: 23.24 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004736/0.2396, allocations: 267.5 kB / 412.7 MB, free: 22.96 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.134e-05/0.2396, allocations: 15.92 kB / 412.7 MB, free: 22.95 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.616e-05/0.2397, allocations: 42.56 kB / 412.8 MB, free: 22.9 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 1.453e-06/0.2397, allocations: 0 / 412.8 MB, free: 22.9 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.03294/0.2726, allocations: 6.737 MB / 419.5 MB, free: 16.14 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.825e-05/0.2727, allocations: 149.3 kB / 419.6 MB, free: 15.97 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001548/0.2729, allocations: 192.4 kB / 419.8 MB, free: 15.77 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.779e-05/0.2729, allocations: 41.64 kB / 419.9 MB, free: 15.73 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.657e-05/0.273, allocations: 141.5 kB / 420 MB, free: 15.59 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001367/0.2732, allocations: 193.3 kB / 420.2 MB, free: 15.39 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.172e-05/0.2732, allocations: 16 kB / 420.2 MB, free: 15.38 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.254e-05/0.2733, allocations: 338.8 kB / 420.6 MB, free: 15.04 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001249/0.2745, allocations: 0.65 MB / 421.2 MB, free: 14.39 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001322/0.2759, allocations: 0.8392 MB / 422 MB, free: 13.47 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002353/0.2782, allocations: 1.318 MB / 423.4 MB, free: 12.08 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.2783, allocations: 4 kB / 423.4 MB, free: 12.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.002755/0.281, allocations: 1.472 MB / 424.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.281, allocations: 11.94 kB / 424.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.2811, allocations: 4 kB / 424.8 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.043e-05/0.2811, allocations: 8 kB / 424.9 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001187/0.2823, allocations: 231.7 kB / 425.1 MB, free: 10.35 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.407e-05/0.2823, allocations: 11.98 kB / 425.1 MB, free: 10.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007993/0.2831, allocations: 123.7 kB / 425.2 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.345e-05/0.2832, allocations: 27.98 kB / 425.2 MB, free: 10.19 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.0002336/0.2834, allocations: 193.5 kB / 425.4 MB, free: 9.988 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002271/0.2837, allocations: 153.2 kB / 425.6 MB, free: 9.832 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001171/0.2838, allocations: 59.3 kB / 425.6 MB, free: 9.777 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.2838, allocations: 8 kB / 425.6 MB, free: 9.77 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.2838, allocations: 0 / 425.6 MB, free: 9.77 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.2838, allocations: 7.984 kB / 425.7 MB, free: 9.762 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0037/0.2875, allocations: 2.284 MB / 427.9 MB, free: 7.293 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.2876, allocations: 16.92 kB / 428 MB, free: 7.277 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006595/0.2882, allocations: 203.7 kB / 428.2 MB, free: 7.078 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.728e-06/0.2882, allocations: 16 kB / 428.2 MB, free: 7.062 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.271e-05/0.2883, allocations: 28 kB / 428.2 MB, free: 7.035 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.033e-05/0.2883, allocations: 19.92 kB / 428.2 MB, free: 7.016 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.903e-06/0.2883, allocations: 19.94 kB / 428.2 MB, free: 6.996 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002402/0.2907, allocations: 1.666 MB / 429.9 MB, free: 5.176 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001299/0.2909, allocations: 160.7 kB / 430.1 MB, free: 5 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.108e-05/0.2909, allocations: 27.98 kB / 430.1 MB, free: 4.973 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004939/0.2914, allocations: 95.98 kB / 430.2 MB, free: 4.879 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001738/0.2916, allocations: 91.66 kB / 430.3 MB, free: 4.789 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.117e-05/0.2917, allocations: 36 kB / 430.3 MB, free: 4.754 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.128e-05/0.2918, allocations: 143.7 kB / 430.4 MB, free: 4.617 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.2918, allocations: 0 / 430.4 MB, free: 4.617 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005464/0.2923, allocations: 120 kB / 430.6 MB, free: 4.5 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.0001301/0.2925, allocations: 150.9 kB / 430.7 MB, free: 4.34 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002184/0.2946, allocations: 1.178 MB / 431.9 MB, free: 3.164 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.668e-06/0.2947, allocations: 4 kB / 431.9 MB, free: 3.16 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007892/0.2955, allocations: 379.2 kB / 432.3 MB, free: 2.793 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008848/0.2963, allocations: 145.4 kB / 432.4 MB, free: 2.652 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00173/0.2981, allocations: 1.37 MB / 433.8 MB, free: 1.117 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001968/0.2983, allocations: 0.8132 MB / 434.6 MB, free: 288 kB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005278/0.2988, allocations: 87.38 kB / 434.7 MB, free: 200 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002573/0.2991, allocations: 39.42 kB / 434.7 MB, free: 160 kB / 298.7 MB Notification: Performance of SimCode: time 3.2e-07/0.2991, allocations: 0 / 434.7 MB, free: 160 kB / 298.7 MB Notification: Performance of Templates: time 0.01084/0.3099, allocations: 7.457 MB / 442.2 MB, free: 8.703 MB / 314.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches