Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001576/0.001576, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001226/0.001226, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.402/1.402, allocations: 227.7 MB / 247 MB, free: 10.28 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001967/0.001967, allocations: 55.59 kB / 307.2 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0993/0.1013, allocations: 50.55 MB / 357.8 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.00406/0.1054, allocations: 2.345 MB / 360.1 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001526/0.1069, allocations: 0.8416 MB / 361 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001375/0.1071, allocations: 7.938 kB / 361 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002974/0.1074, allocations: 55.56 kB / 361 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001785/0.1076, allocations: 55.56 kB / 361.1 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004594/0.1081, allocations: 179.6 kB / 361.2 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003927/0.1085, allocations: 379.5 kB / 361.6 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002136/0.1087, allocations: 107.8 kB / 361.7 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002773/0.109, allocations: 159.5 kB / 361.9 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002466/0.1092, allocations: 187.2 kB / 362.1 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.407e-05/0.1093, allocations: 32 kB / 362.1 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.199e-05/0.1094, allocations: 40 kB / 362.1 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001095/0.1095, allocations: 83.8 kB / 362.2 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001524/0.1096, allocations: 155.2 kB / 362.4 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003428/0.11, allocations: 323.2 kB / 362.7 MB, free: 9.004 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.11, allocations: 0 / 362.7 MB, free: 9.004 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.11, allocations: 0 / 362.7 MB, free: 9.004 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.922e-06/0.11, allocations: 0 / 362.7 MB, free: 9.004 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.001223/0.1112, allocations: 0.6239 MB / 363.3 MB, free: 8.332 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.1113, allocations: 8.031 kB / 363.3 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.635e-05/0.1114, allocations: 44.56 kB / 363.4 MB, free: 8.281 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003422/0.1117, allocations: 272.2 kB / 363.6 MB, free: 7.977 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002091/0.1119, allocations: 142.3 kB / 363.8 MB, free: 7.816 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.465e-05/0.112, allocations: 32.38 kB / 363.8 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001215/0.1132, allocations: 0.5622 MB / 364.4 MB, free: 7.199 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.1133, allocations: 0 / 364.4 MB, free: 7.199 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.858e-05/0.1133, allocations: 12 kB / 364.4 MB, free: 7.188 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.1133, allocations: 8 kB / 364.4 MB, free: 7.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001413/0.1148, allocations: 0.5136 MB / 364.9 MB, free: 6.668 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001502/0.1163, allocations: 0.994 MB / 365.9 MB, free: 5.594 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001617/0.1179, allocations: 0.5024 MB / 366.4 MB, free: 5.055 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006443/0.1186, allocations: 267.3 kB / 366.6 MB, free: 4.781 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.179e-05/0.1186, allocations: 8.141 kB / 366.7 MB, free: 4.773 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.641e-05/0.1186, allocations: 46.55 kB / 366.7 MB, free: 4.719 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.634e-06/0.1187, allocations: 0 / 366.7 MB, free: 4.719 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2025/0.3211, allocations: 5.718 MB / 372.4 MB, free: 20.64 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.997e-05/0.3213, allocations: 146.8 kB / 372.6 MB, free: 20.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002205/0.3215, allocations: 203.9 kB / 372.8 MB, free: 20.37 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.99e-05/0.3216, allocations: 37.05 kB / 372.8 MB, free: 20.34 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.538e-05/0.3216, allocations: 140.9 kB / 372.9 MB, free: 20.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001862/0.3218, allocations: 196.6 kB / 373.1 MB, free: 20.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002951/0.3221, allocations: 107.7 kB / 373.2 MB, free: 20.11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.02e-05/0.3222, allocations: 344.1 kB / 373.6 MB, free: 19.8 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001624/0.3239, allocations: 0.6187 MB / 374.2 MB, free: 19.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00171/0.3256, allocations: 0.7976 MB / 375 MB, free: 19.11 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00291/0.3285, allocations: 1.252 MB / 376.2 MB, free: 18.47 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/0.3285, allocations: 1.188 kB / 376.2 MB, free: 18.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003439/0.332, allocations: 1.396 MB / 377.6 MB, free: 17.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.752e-05/0.332, allocations: 17.28 kB / 377.6 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.351e-05/0.332, allocations: 8.875 kB / 377.7 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.016e-05/0.3321, allocations: 10.75 kB / 377.7 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001283/0.3333, allocations: 209.6 kB / 377.9 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.834e-05/0.3334, allocations: 15 kB / 377.9 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009099/0.3343, allocations: 103.4 kB / 378 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.445e-05/0.3344, allocations: 30.84 kB / 378 MB, free: 17.85 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.000277/0.3347, allocations: 177.9 kB / 378.2 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002765/0.3349, allocations: 156.4 kB / 378.3 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001395/0.3351, allocations: 64.17 kB / 378.4 MB, free: 17.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.857e-06/0.3351, allocations: 8.031 kB / 378.4 MB, free: 17.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-05/0.3351, allocations: 6.625 kB / 378.4 MB, free: 17.56 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.3351, allocations: 7.047 kB / 378.4 MB, free: 17.56 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004408/0.3396, allocations: 2.162 MB / 380.6 MB, free: 16.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.279e-05/0.3396, allocations: 11.03 kB / 380.6 MB, free: 16.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007204/0.3403, allocations: 181.7 kB / 380.8 MB, free: 16.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.545e-05/0.3403, allocations: 15.48 kB / 380.8 MB, free: 16.4 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.602e-05/0.3404, allocations: 27.88 kB / 380.8 MB, free: 16.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-05/0.3404, allocations: 19.84 kB / 380.8 MB, free: 16.38 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.056e-05/0.3404, allocations: 14.94 kB / 380.9 MB, free: 16.38 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002919/0.3433, allocations: 1.551 MB / 382.4 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001655/0.3435, allocations: 169.4 kB / 382.6 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.316e-05/0.3436, allocations: 30.11 kB / 382.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005717/0.3442, allocations: 73.55 kB / 382.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001978/0.3444, allocations: 92.14 kB / 382.8 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.461e-05/0.3444, allocations: 35.09 kB / 382.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001112/0.3446, allocations: 142.2 kB / 382.9 MB, free: 15.14 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3446, allocations: 4 kB / 382.9 MB, free: 15.14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006958/0.3453, allocations: 122.3 kB / 383.1 MB, free: 15.12 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.0002041/0.3455, allocations: 138.8 kB / 383.2 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002902/0.3484, allocations: 1.15 MB / 384.3 MB, free: 14.56 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.294e-06/0.3484, allocations: 5.125 kB / 384.3 MB, free: 14.56 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009787/0.3494, allocations: 336.8 kB / 384.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000864/0.3503, allocations: 137 kB / 384.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00204/0.3523, allocations: 1.166 MB / 386 MB, free: 13.56 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002998/0.3526, allocations: 0.8103 MB / 386.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005636/0.3532, allocations: 101.5 kB / 386.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002901/0.3535, allocations: 43.38 kB / 386.9 MB, free: 12.79 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3535, allocations: 0 / 386.9 MB, free: 12.79 MB / 302.1 MB Notification: Performance of Templates: time 0.01248/0.366, allocations: 8.218 MB / 395.1 MB, free: 9.211 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches