Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001541/0.001541, allocations: 114.7 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001776/0.001776, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 61.36 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1024, allocations: 50.54 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003572/0.106, allocations: 2.34 MB / 361.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001394/0.1074, allocations: 0.8416 MB / 362.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001262/0.1076, allocations: 11.94 kB / 362.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002685/0.1079, allocations: 51.58 kB / 362.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001682/0.1081, allocations: 55.55 kB / 362.2 MB, free: 10 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004549/0.1085, allocations: 183.5 kB / 362.4 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003644/0.1089, allocations: 379.5 kB / 362.7 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001972/0.1091, allocations: 123.8 kB / 362.9 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002668/0.1094, allocations: 159.5 kB / 363 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002218/0.1096, allocations: 179.2 kB / 363.2 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.908e-05/0.1097, allocations: 32 kB / 363.2 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.777e-05/0.1097, allocations: 36 kB / 363.3 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001079/0.1098, allocations: 95.78 kB / 363.4 MB, free: 8.844 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001243/0.11, allocations: 143.2 kB / 363.5 MB, free: 8.703 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003258/0.1103, allocations: 338.8 kB / 363.8 MB, free: 8.371 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1103, allocations: 0 / 363.8 MB, free: 8.371 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1103, allocations: 0 / 363.8 MB, free: 8.371 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.191e-06/0.1103, allocations: 4 kB / 363.8 MB, free: 8.367 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.00114/0.1115, allocations: 0.6278 MB / 364.5 MB, free: 7.691 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.354e-05/0.1115, allocations: 8.031 kB / 364.5 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.931e-05/0.1116, allocations: 40.56 kB / 364.5 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004075/0.112, allocations: 277.3 kB / 364.8 MB, free: 7.336 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001851/0.1122, allocations: 134.3 kB / 364.9 MB, free: 7.184 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.654e-05/0.1123, allocations: 28.38 kB / 364.9 MB, free: 7.156 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.1133, allocations: 0.5784 MB / 365.5 MB, free: 6.555 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.502e-05/0.1134, allocations: 0 / 365.5 MB, free: 6.555 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.165e-05/0.1134, allocations: 12 kB / 365.5 MB, free: 6.543 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.1134, allocations: 7.938 kB / 365.5 MB, free: 6.535 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00122/0.1147, allocations: 0.5035 MB / 366 MB, free: 6.031 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001439/0.1161, allocations: 1.002 MB / 367 MB, free: 4.949 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001437/0.1176, allocations: 0.5024 MB / 367.5 MB, free: 4.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005597/0.1181, allocations: 263.4 kB / 367.8 MB, free: 4.141 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.759e-05/0.1182, allocations: 12.14 kB / 367.8 MB, free: 4.129 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.656e-05/0.1182, allocations: 38.56 kB / 367.8 MB, free: 4.082 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.863e-06/0.1182, allocations: 4 kB / 367.8 MB, free: 4.078 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.1941/0.3123, allocations: 5.71 MB / 373.6 MB, free: 20.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.186e-05/0.3124, allocations: 152.5 kB / 373.7 MB, free: 20.6 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001992/0.3126, allocations: 199.2 kB / 373.9 MB, free: 20.46 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.713e-05/0.3127, allocations: 40.2 kB / 373.9 MB, free: 20.42 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.497e-05/0.3128, allocations: 142.6 kB / 374.1 MB, free: 20.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001415/0.3129, allocations: 195.1 kB / 374.3 MB, free: 20.15 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000293/0.3132, allocations: 106.4 kB / 374.4 MB, free: 20.1 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.977e-05/0.3133, allocations: 346.9 kB / 374.7 MB, free: 19.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00143/0.3147, allocations: 0.6167 MB / 375.3 MB, free: 19.53 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001502/0.3162, allocations: 0.7973 MB / 376.1 MB, free: 19.06 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002552/0.3188, allocations: 1.245 MB / 377.4 MB, free: 18.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.658e-06/0.3188, allocations: 1.375 kB / 377.4 MB, free: 18.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003054/0.3219, allocations: 1.399 MB / 378.8 MB, free: 17.85 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.474e-05/0.3219, allocations: 7.734 kB / 378.8 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.452e-05/0.3219, allocations: 9.875 kB / 378.8 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.63e-05/0.322, allocations: 12.89 kB / 378.8 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001368/0.3233, allocations: 212.1 kB / 379 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.658e-05/0.3234, allocations: 13.98 kB / 379 MB, free: 17.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000963/0.3243, allocations: 102.7 kB / 379.1 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.208e-05/0.3244, allocations: 27.25 kB / 379.2 MB, free: 17.81 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.0003131/0.3248, allocations: 181 kB / 379.3 MB, free: 17.65 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003017/0.3251, allocations: 158.8 kB / 379.5 MB, free: 17.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001417/0.3252, allocations: 62.42 kB / 379.5 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.879e-06/0.3252, allocations: 11.81 kB / 379.6 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.504e-05/0.3253, allocations: 2.969 kB / 379.6 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.114e-05/0.3253, allocations: 5.141 kB / 379.6 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004367/0.3297, allocations: 2.165 MB / 381.7 MB, free: 16.37 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.655e-05/0.3297, allocations: 14 kB / 381.7 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007154/0.3304, allocations: 183.1 kB / 381.9 MB, free: 16.35 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.488e-05/0.3304, allocations: 17.31 kB / 381.9 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.226e-05/0.3305, allocations: 30.62 kB / 382 MB, free: 16.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.588e-05/0.3305, allocations: 20.34 kB / 382 MB, free: 16.33 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.085e-05/0.3305, allocations: 19.69 kB / 382 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002733/0.3333, allocations: 1.546 MB / 383.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001808/0.3335, allocations: 160.8 kB / 383.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.106e-05/0.3335, allocations: 26.58 kB / 383.7 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005485/0.3341, allocations: 74.09 kB / 383.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001898/0.3343, allocations: 96.83 kB / 383.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.036e-05/0.3343, allocations: 34.3 kB / 383.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001143/0.3345, allocations: 141.5 kB / 384.1 MB, free: 15.1 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3345, allocations: 1.219 kB / 384.1 MB, free: 15.1 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007003/0.3352, allocations: 122.1 kB / 384.2 MB, free: 15.08 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.0001425/0.3353, allocations: 136.5 kB / 384.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002545/0.3379, allocations: 1.137 MB / 385.5 MB, free: 14.53 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.3379, allocations: 2.406 kB / 385.5 MB, free: 14.53 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008776/0.3388, allocations: 341 kB / 385.8 MB, free: 14.44 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008428/0.3396, allocations: 145.9 kB / 385.9 MB, free: 14.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001999/0.3416, allocations: 1.161 MB / 387.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002906/0.3419, allocations: 0.8148 MB / 387.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004425/0.3424, allocations: 94.08 kB / 388 MB, free: 12.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002754/0.3427, allocations: 41.19 kB / 388.1 MB, free: 12.76 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3427, allocations: 0 / 388.1 MB, free: 12.76 MB / 302.1 MB Notification: Performance of Templates: time 0.01183/0.3545, allocations: 8.203 MB / 396.3 MB, free: 8.715 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches