Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) 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) Running command: translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007738/0.000774, allocations: 94.16 kB / 16.04 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06506/0.06506, allocations: 12.63 MB / 29.41 MB, free: 6.09 MB / 24.77 MB Notification: Performance of FrontEnd - loaded program: time 0.0001495/0.0001495, allocations: 4 kB / 40.27 MB, free: 0.625 MB / 24.77 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.004216/0.004378, allocations: 2.835 MB / 43.1 MB, free: 6.066 MB / 33.03 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous): time 1.405/1.409, allocations: 278.1 MB / 321.2 MB, free: 10.12 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008919/1.41, allocations: 0.6184 MB / 321.8 MB, free: 9.504 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.08e-05/1.41, allocations: 4 kB / 321.8 MB, free: 9.5 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002073/1.41, allocations: 31.77 kB / 321.8 MB, free: 9.469 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001204/1.411, allocations: 43.06 kB / 321.9 MB, free: 9.43 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002901/1.411, allocations: 115.8 kB / 322 MB, free: 9.316 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000287/1.411, allocations: 319.2 kB / 322.3 MB, free: 9.004 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002192/1.411, allocations: 154.2 kB / 322.4 MB, free: 8.855 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001618/1.412, allocations: 123.5 kB / 322.6 MB, free: 8.734 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001737/1.412, allocations: 135.5 kB / 322.7 MB, free: 8.602 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.176e-05/1.412, allocations: 17.03 kB / 322.7 MB, free: 8.586 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.585e-05/1.412, allocations: 16 kB / 322.7 MB, free: 8.57 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.055e-05/1.412, allocations: 71.72 kB / 322.8 MB, free: 8.5 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001148/1.412, allocations: 127.6 kB / 322.9 MB, free: 8.371 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002404/1.412, allocations: 267 kB / 323.2 MB, free: 8.109 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/1.412, allocations: 0 / 323.2 MB, free: 8.109 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.543e-06/1.412, allocations: 0 / 323.2 MB, free: 8.109 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.937e-06/1.412, allocations: 0 / 323.2 MB, free: 8.109 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.000943/1.413, allocations: 0.5555 MB / 323.7 MB, free: 7.512 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.813e-05/1.413, allocations: 12.72 kB / 323.8 MB, free: 7.5 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.449e-05/1.413, allocations: 32.66 kB / 323.8 MB, free: 7.469 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002497/1.414, allocations: 243.2 kB / 324 MB, free: 7.195 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001789/1.414, allocations: 142.2 kB / 324.2 MB, free: 7.039 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.685e-05/1.414, allocations: 33.69 kB / 324.2 MB, free: 7.008 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007429/1.415, allocations: 377.5 kB / 324.6 MB, free: 6.633 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/1.415, allocations: 0.6875 kB / 324.6 MB, free: 6.633 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.827e-05/1.415, allocations: 12 kB / 324.6 MB, free: 6.621 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/1.415, allocations: 5.406 kB / 324.6 MB, free: 6.617 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001218/1.416, allocations: 0.5096 MB / 325.1 MB, free: 6.113 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001556/1.418, allocations: 1.023 MB / 326.1 MB, free: 5.023 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001018/1.419, allocations: 353.2 kB / 326.5 MB, free: 4.672 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004397/1.419, allocations: 193.2 kB / 326.6 MB, free: 4.48 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.644e-05/1.419, allocations: 240 / 326.6 MB, free: 4.48 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.085e-05/1.419, allocations: 38.73 kB / 326.7 MB, free: 4.434 MB / 250.7 MB Notification: Performance of pre-optimization done (n=28): time 2.134e-06/1.419, allocations: 3.984 kB / 326.7 MB, free: 4.43 MB / 250.7 MB Notification: Performance of matching and sorting (n=52): time 0.02389/1.443, allocations: 6.665 MB / 333.4 MB, free: 13.67 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.8e-05/1.443, allocations: 59.84 kB / 333.4 MB, free: 13.6 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002204/1.443, allocations: 198.2 kB / 333.6 MB, free: 13.39 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.245e-05/1.443, allocations: 37.7 kB / 333.6 MB, free: 13.35 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.743e-05/1.443, allocations: 144.7 kB / 333.8 MB, free: 13.21 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001304/1.444, allocations: 177.4 kB / 334 MB, free: 13.03 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.421e-05/1.444, allocations: 12 kB / 334 MB, free: 13.02 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.218e-05/1.444, allocations: 334.8 kB / 334.3 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001121/1.445, allocations: 0.493 MB / 334.8 MB, free: 12.19 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001184/1.446, allocations: 0.5529 MB / 335.3 MB, free: 11.62 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002065/1.448, allocations: 0.8736 MB / 336.2 MB, free: 10.73 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/1.448, allocations: 4 kB / 336.2 MB, free: 10.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002509/1.451, allocations: 1.057 MB / 337.3 MB, free: 9.664 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/1.451, allocations: 11.94 kB / 337.3 MB, free: 9.652 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/1.451, allocations: 0 / 337.3 MB, free: 9.652 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/1.451, allocations: 7.938 kB / 337.3 MB, free: 9.645 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009052/1.452, allocations: 187.8 kB / 337.5 MB, free: 9.461 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/1.452, allocations: 7.984 kB / 337.5 MB, free: 9.453 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005974/1.452, allocations: 107.9 kB / 337.6 MB, free: 9.348 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.367e-05/1.452, allocations: 16 kB / 337.6 MB, free: 9.332 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0002233/1.453, allocations: 162.8 kB / 337.8 MB, free: 9.164 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.695e-05/1.453, allocations: 31.66 kB / 337.8 MB, free: 9.133 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001102/1.453, allocations: 47.31 kB / 337.8 MB, free: 9.082 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/1.453, allocations: 11.97 kB / 337.9 MB, free: 9.07 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/1.453, allocations: 0 / 337.9 MB, free: 9.07 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/1.453, allocations: 0 / 337.9 MB, free: 9.07 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003607/1.456, allocations: 1.987 MB / 339.8 MB, free: 6.918 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/1.456, allocations: 9 kB / 339.8 MB, free: 6.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005949/1.457, allocations: 163.8 kB / 340 MB, free: 6.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.217e-05/1.457, allocations: 15.94 kB / 340 MB, free: 6.734 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.823e-05/1.457, allocations: 16 kB / 340 MB, free: 6.719 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.621e-05/1.457, allocations: 23.92 kB / 340.1 MB, free: 6.695 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.327e-06/1.457, allocations: 15.88 kB / 340.1 MB, free: 6.684 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002453/1.46, allocations: 1.334 MB / 341.4 MB, free: 5.219 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001484/1.46, allocations: 144.8 kB / 341.6 MB, free: 5.059 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.624e-05/1.46, allocations: 23.92 kB / 341.6 MB, free: 5.035 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004726/1.46, allocations: 91.92 kB / 341.7 MB, free: 4.945 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000171/1.46, allocations: 87.66 kB / 341.8 MB, free: 4.859 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.779e-05/1.46, allocations: 24 kB / 341.8 MB, free: 4.836 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001443/1.461, allocations: 150.7 kB / 341.9 MB, free: 4.691 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.91e-07/1.461, allocations: 0 / 341.9 MB, free: 4.691 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004013/1.461, allocations: 96 kB / 342 MB, free: 4.598 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.0001465/1.461, allocations: 127.1 kB / 342.1 MB, free: 4.465 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002045/1.463, allocations: 0.9234 MB / 343.1 MB, free: 3.539 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/1.463, allocations: 0 / 343.1 MB, free: 3.539 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008434/1.464, allocations: 365.7 kB / 343.4 MB, free: 3.184 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006345/1.465, allocations: 59.97 kB / 343.5 MB, free: 3.125 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001907/1.467, allocations: 1.188 MB / 344.7 MB, free: 1.805 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003444/1.467, allocations: 0.7882 MB / 345.5 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004413/1.467, allocations: 75.25 kB / 345.5 MB, free: 0.918 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001978/1.468, allocations: 27.44 kB / 345.6 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of SimCode: time 2.4e-07/1.468, allocations: 0 / 345.6 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of Templates: time 0.008057/1.476, allocations: 5.172 MB / 350.7 MB, free: 11.73 MB / 282.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches