Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007694/0.0007694, allocations: 86.11 kB / 16.64 MB, free: 6.113 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.0008112/0.0008113, allocations: 182.9 kB / 17.56 MB, free: 5.781 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.454/1.454, allocations: 223.3 MB / 241.6 MB, free: 208 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002574/0.0002576, allocations: 4 kB / 301.4 MB, free: 6.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1084, allocations: 50.43 MB / 351.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002755/0.1112, allocations: 2.01 MB / 353.8 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001305/0.1125, allocations: 0.7873 MB / 354.6 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00014/0.1127, allocations: 7.938 kB / 354.6 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002705/0.113, allocations: 39.77 kB / 354.7 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001753/0.1131, allocations: 47.69 kB / 354.7 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004598/0.1136, allocations: 151.8 kB / 354.9 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003797/0.114, allocations: 371.5 kB / 355.2 MB, free: 292 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002179/0.1142, allocations: 87.83 kB / 355.3 MB, free: 204 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002095/0.1144, allocations: 135.4 kB / 355.5 MB, free: 68 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002446/0.1147, allocations: 159.3 kB / 355.6 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.535e-05/0.1147, allocations: 16 kB / 355.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.951e-05/0.1148, allocations: 16 kB / 355.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001051/0.1149, allocations: 75.72 kB / 355.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001531/0.1151, allocations: 149 kB / 355.9 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003117/0.1154, allocations: 307.1 kB / 356.2 MB, free: 15.35 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1154, allocations: 4 kB / 356.2 MB, free: 15.35 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1154, allocations: 0 / 356.2 MB, free: 15.35 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.011e-06/0.1154, allocations: 4 kB / 356.2 MB, free: 15.34 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001082/0.1165, allocations: 0.5811 MB / 356.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.1165, allocations: 12.03 kB / 356.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.399e-05/0.1166, allocations: 36.56 kB / 356.8 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003734/0.117, allocations: 268.4 kB / 357.1 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001988/0.1172, allocations: 146.3 kB / 357.2 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.21e-05/0.1173, allocations: 32.28 kB / 357.2 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001209/0.1185, allocations: 0.5856 MB / 357.8 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.171e-05/0.1185, allocations: 4 kB / 357.8 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.601e-05/0.1186, allocations: 12 kB / 357.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.1186, allocations: 4 kB / 357.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001402/0.12, allocations: 0.5308 MB / 358.4 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001523/0.1215, allocations: 1.022 MB / 359.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001629/0.1232, allocations: 0.518 MB / 359.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006546/0.1239, allocations: 271.4 kB / 360.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.538e-05/0.1239, allocations: 8.141 kB / 360.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.171e-05/0.124, allocations: 46.48 kB / 360.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.174e-06/0.124, allocations: 0 / 360.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.04118/0.1651, allocations: 6.762 MB / 367 MB, free: 4.242 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.1653, allocations: 145.3 kB / 367.1 MB, free: 4.066 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002398/0.1656, allocations: 200.2 kB / 367.3 MB, free: 3.859 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.621e-05/0.1657, allocations: 41.64 kB / 367.4 MB, free: 3.812 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.314e-05/0.1658, allocations: 145.5 kB / 367.5 MB, free: 3.668 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001984/0.166, allocations: 189.3 kB / 367.7 MB, free: 3.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001284/0.1661, allocations: 65.69 kB / 367.8 MB, free: 3.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.1662, allocations: 342.8 kB / 368.1 MB, free: 3.066 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001696/0.1679, allocations: 0.6539 MB / 368.7 MB, free: 2.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001795/0.1697, allocations: 0.8354 MB / 369.6 MB, free: 1.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003205/0.173, allocations: 1.322 MB / 370.9 MB, free: 104 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/0.173, allocations: 4 kB / 370.9 MB, free: 100 kB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.2105/0.3835, allocations: 1.473 MB / 372.4 MB, free: 25.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.737e-05/0.3835, allocations: 8.219 kB / 372.4 MB, free: 25.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.451e-05/0.3835, allocations: 6.688 kB / 372.4 MB, free: 25.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.114e-05/0.3836, allocations: 7.969 kB / 372.4 MB, free: 25.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001397/0.385, allocations: 229.4 kB / 372.6 MB, free: 25.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.363e-05/0.385, allocations: 14.02 kB / 372.6 MB, free: 25.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009802/0.386, allocations: 119.8 kB / 372.8 MB, free: 25.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.023e-05/0.3861, allocations: 27.91 kB / 372.8 MB, free: 25.62 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.0003292/0.3864, allocations: 181 kB / 373 MB, free: 25.51 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003285/0.3868, allocations: 156.6 kB / 373.1 MB, free: 25.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001986/0.387, allocations: 60.84 kB / 373.2 MB, free: 25.47 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.748e-06/0.387, allocations: 8.062 kB / 373.2 MB, free: 25.47 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.347e-06/0.387, allocations: 1.156 kB / 373.2 MB, free: 25.47 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.225e-05/0.387, allocations: 6.469 kB / 373.2 MB, free: 25.47 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00581/0.3928, allocations: 2.293 MB / 375.5 MB, free: 24.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-05/0.3929, allocations: 15.16 kB / 375.5 MB, free: 24.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007982/0.3937, allocations: 199.2 kB / 375.7 MB, free: 24.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-05/0.3937, allocations: 18.62 kB / 375.7 MB, free: 24.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.177e-05/0.3938, allocations: 28.28 kB / 375.7 MB, free: 24.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.978e-05/0.3938, allocations: 23.25 kB / 375.8 MB, free: 24.55 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-05/0.3938, allocations: 19.09 kB / 375.8 MB, free: 24.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003346/0.3972, allocations: 1.666 MB / 377.4 MB, free: 23.58 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002286/0.3974, allocations: 170.1 kB / 377.6 MB, free: 23.44 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.742e-05/0.3975, allocations: 25.72 kB / 377.6 MB, free: 23.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006079/0.3981, allocations: 99.73 kB / 377.7 MB, free: 23.42 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002031/0.3983, allocations: 96.34 kB / 377.8 MB, free: 23.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.153e-05/0.3984, allocations: 30.31 kB / 377.9 MB, free: 23.38 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000135/0.3985, allocations: 146.9 kB / 378 MB, free: 23.28 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3985, allocations: 0.5469 kB / 378 MB, free: 23.28 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007023/0.3992, allocations: 122.6 kB / 378.1 MB, free: 23.26 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.0001672/0.3994, allocations: 139.8 kB / 378.3 MB, free: 23.15 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002993/0.4024, allocations: 1.192 MB / 379.5 MB, free: 22.72 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.4024, allocations: 1.25 kB / 379.5 MB, free: 22.72 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001078/0.4035, allocations: 388.8 kB / 379.8 MB, free: 22.62 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.4046, allocations: 142.8 kB / 380 MB, free: 22.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002347/0.4069, allocations: 1.365 MB / 381.3 MB, free: 21.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003413/0.4073, allocations: 0.8136 MB / 382.2 MB, free: 20.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006308/0.4079, allocations: 91.61 kB / 382.2 MB, free: 20.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002881/0.4082, allocations: 37.98 kB / 382.3 MB, free: 20.79 MB / 302.1 MB Notification: Performance of SimCode: time 1.733e-06/0.4082, allocations: 0 / 382.3 MB, free: 20.79 MB / 302.1 MB Notification: Performance of Templates: time 0.01363/0.4219, allocations: 7.515 MB / 389.8 MB, free: 17.9 MB / 302.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches