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.SubClocked.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.SubClocked,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.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,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.SubClocked") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 184.3 kB / 16.71 MB, free: 4.973 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.267/1.267, allocations: 225.7 MB / 243.2 MB, free: 8.508 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.0008242/0.0008244, allocations: 102 kB / 294.4 MB, free: 9.512 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002314/0.0002314, allocations: 4 kB / 354.1 MB, free: 13.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2081/0.2084, allocations: 50.42 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002/0.2104, allocations: 1.96 MB / 406.5 MB, free: 29.37 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009314/0.2114, allocations: 0.7522 MB / 407.3 MB, free: 28.61 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001168/0.2115, allocations: 7.938 kB / 407.3 MB, free: 28.61 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002223/0.2117, allocations: 44.31 kB / 407.3 MB, free: 28.56 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001509/0.2119, allocations: 46.44 kB / 407.4 MB, free: 28.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000371/0.2123, allocations: 151.8 kB / 407.5 MB, free: 28.37 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002511/0.2125, allocations: 363.6 kB / 407.9 MB, free: 28.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001602/0.2127, allocations: 88.8 kB / 408 MB, free: 27.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001527/0.2129, allocations: 142.5 kB / 408.1 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001596/0.213, allocations: 155.3 kB / 408.3 MB, free: 27.64 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.731e-05/0.2131, allocations: 12 kB / 408.3 MB, free: 27.63 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.55e-05/0.2131, allocations: 20 kB / 408.3 MB, free: 27.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.657e-05/0.2132, allocations: 71.72 kB / 408.4 MB, free: 27.54 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001009/0.2133, allocations: 160.9 kB / 408.5 MB, free: 27.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002063/0.2135, allocations: 300.4 kB / 408.8 MB, free: 27.09 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2135, allocations: 0 / 408.8 MB, free: 27.09 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.2135, allocations: 5.875 kB / 408.8 MB, free: 27.08 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.2135, allocations: 0 / 408.8 MB, free: 27.08 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.0008735/0.2144, allocations: 0.5823 MB / 409.4 MB, free: 26.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.175e-05/0.2145, allocations: 11.97 kB / 409.4 MB, free: 26.44 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.939e-05/0.2145, allocations: 44.56 kB / 409.5 MB, free: 26.4 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002444/0.2148, allocations: 276.2 kB / 409.7 MB, free: 26.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001514/0.2149, allocations: 142.3 kB / 409.9 MB, free: 25.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.054e-05/0.215, allocations: 32.38 kB / 409.9 MB, free: 25.9 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009337/0.2159, allocations: 0.5764 MB / 410.5 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.787e-05/0.216, allocations: 7.984 kB / 410.5 MB, free: 25.29 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.836e-05/0.216, allocations: 12 kB / 410.5 MB, free: 25.28 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.216, allocations: 8 kB / 410.5 MB, free: 25.27 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001097/0.2171, allocations: 0.5269 MB / 411 MB, free: 24.74 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001163/0.2183, allocations: 1.022 MB / 412 MB, free: 23.64 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001241/0.2195, allocations: 0.5257 MB / 412.6 MB, free: 23.08 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004869/0.22, allocations: 263.4 kB / 412.8 MB, free: 22.81 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.991e-05/0.2201, allocations: 16.12 kB / 412.8 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.602e-05/0.2201, allocations: 46.5 kB / 412.9 MB, free: 22.74 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 1.443e-06/0.2201, allocations: 0 / 412.9 MB, free: 22.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.03257/0.2527, allocations: 6.748 MB / 419.6 MB, free: 15.98 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.879e-05/0.2528, allocations: 145 kB / 419.8 MB, free: 15.8 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001922/0.253, allocations: 204.5 kB / 420 MB, free: 15.59 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.03e-05/0.2531, allocations: 37.7 kB / 420 MB, free: 15.55 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.52e-05/0.2532, allocations: 137.6 kB / 420.2 MB, free: 15.41 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001491/0.2533, allocations: 193.3 kB / 420.3 MB, free: 15.22 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.21e-05/0.2534, allocations: 16 kB / 420.4 MB, free: 15.21 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.834e-05/0.2535, allocations: 334.8 kB / 420.7 MB, free: 14.87 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001309/0.2548, allocations: 0.6578 MB / 421.3 MB, free: 14.21 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001407/0.2562, allocations: 0.8315 MB / 422.2 MB, free: 13.3 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002523/0.2588, allocations: 1.314 MB / 423.5 MB, free: 11.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.2588, allocations: 4 kB / 423.5 MB, free: 11.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.002769/0.2615, allocations: 1.472 MB / 425 MB, free: 10.43 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.2616, allocations: 8 kB / 425 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.2616, allocations: 8 kB / 425 MB, free: 10.42 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.57e-05/0.2616, allocations: 8 kB / 425 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001216/0.2629, allocations: 231.7 kB / 425.2 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.346e-05/0.2629, allocations: 15.94 kB / 425.2 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008186/0.2637, allocations: 119.7 kB / 425.3 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.433e-05/0.2638, allocations: 32 kB / 425.4 MB, free: 10.02 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.0002328/0.264, allocations: 181.5 kB / 425.6 MB, free: 9.832 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002316/0.2643, allocations: 157.5 kB / 425.7 MB, free: 9.672 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001164/0.2644, allocations: 67.3 kB / 425.8 MB, free: 9.609 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.241e-06/0.2644, allocations: 11.94 kB / 425.8 MB, free: 9.598 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.064e-06/0.2644, allocations: 0 / 425.8 MB, free: 9.598 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.2644, allocations: 3.984 kB / 425.8 MB, free: 9.594 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00371/0.2681, allocations: 2.292 MB / 428.1 MB, free: 7.117 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/0.2682, allocations: 12 kB / 428.1 MB, free: 7.105 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000646/0.2688, allocations: 204.4 kB / 428.3 MB, free: 6.906 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.669e-06/0.2688, allocations: 12 kB / 428.3 MB, free: 6.895 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.308e-05/0.2689, allocations: 28 kB / 428.3 MB, free: 6.867 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.057e-05/0.2689, allocations: 23.92 kB / 428.4 MB, free: 6.844 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/0.2689, allocations: 11.94 kB / 428.4 MB, free: 6.832 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002422/0.2713, allocations: 1.674 MB / 430 MB, free: 5.008 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001381/0.2715, allocations: 160.6 kB / 430.2 MB, free: 4.832 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.127e-05/0.2716, allocations: 31.98 kB / 430.2 MB, free: 4.801 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005014/0.2721, allocations: 91.98 kB / 430.3 MB, free: 4.711 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001681/0.2722, allocations: 95.66 kB / 430.4 MB, free: 4.617 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.971e-05/0.2723, allocations: 28 kB / 430.4 MB, free: 4.59 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.141e-05/0.2724, allocations: 145.1 kB / 430.6 MB, free: 4.449 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.9e-07/0.2724, allocations: 0 / 430.6 MB, free: 4.449 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000553/0.273, allocations: 120 kB / 430.7 MB, free: 4.332 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.0001247/0.2731, allocations: 155.3 kB / 430.8 MB, free: 4.168 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002217/0.2753, allocations: 1.186 MB / 432 MB, free: 2.984 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.2753, allocations: 0 / 432 MB, free: 2.984 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007956/0.2761, allocations: 383.1 kB / 432.4 MB, free: 2.613 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000865/0.277, allocations: 144.2 kB / 432.5 MB, free: 2.473 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001816/0.2788, allocations: 1.361 MB / 433.9 MB, free: 0.9492 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002286/0.2791, allocations: 0.8322 MB / 434.7 MB, free: 92 kB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005344/0.2796, allocations: 91.38 kB / 434.8 MB, free: 0 / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002916/0.2799, allocations: 35.48 kB / 434.9 MB, free: 15.96 MB / 314.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2799, allocations: 0 / 434.9 MB, free: 15.96 MB / 314.7 MB Notification: Performance of Templates: time 0.01195/0.2919, allocations: 7.506 MB / 442.4 MB, free: 8.465 MB / 314.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches