Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001356/0.001356, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001522/0.001522, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 63.02 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.106, allocations: 50.53 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004061/0.1101, allocations: 2.321 MB / 361.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00144/0.1116, allocations: 0.8066 MB / 362 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001309/0.1117, allocations: 8 kB / 362 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003001/0.1121, allocations: 51.56 kB / 362.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001812/0.1122, allocations: 59.56 kB / 362.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004375/0.1127, allocations: 175.5 kB / 362.3 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003508/0.1131, allocations: 375.6 kB / 362.7 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002029/0.1133, allocations: 91.38 kB / 362.8 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002551/0.1135, allocations: 159.5 kB / 362.9 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002206/0.1138, allocations: 175.3 kB / 363.1 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.859e-05/0.1138, allocations: 36 kB / 363.1 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.516e-05/0.1139, allocations: 32 kB / 363.2 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001068/0.114, allocations: 95.72 kB / 363.2 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001215/0.1141, allocations: 139.3 kB / 363.4 MB, free: 8.809 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003299/0.1144, allocations: 330.8 kB / 363.7 MB, free: 8.484 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.1145, allocations: 0 / 363.7 MB, free: 8.484 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1145, allocations: 0 / 363.7 MB, free: 8.484 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.1145, allocations: 0 / 363.7 MB, free: 8.484 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001152/0.1156, allocations: 0.6162 MB / 364.3 MB, free: 7.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.1157, allocations: 8.031 kB / 364.3 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.471e-05/0.1158, allocations: 44.56 kB / 364.4 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004152/0.1162, allocations: 268.4 kB / 364.6 MB, free: 7.469 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001845/0.1164, allocations: 134.2 kB / 364.8 MB, free: 7.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.132e-05/0.1165, allocations: 32.38 kB / 364.8 MB, free: 7.289 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001067/0.1175, allocations: 0.553 MB / 365.3 MB, free: 6.707 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/0.1176, allocations: 3.938 kB / 365.4 MB, free: 6.703 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.258e-05/0.1176, allocations: 16 kB / 365.4 MB, free: 6.688 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.342e-05/0.1176, allocations: 11.98 kB / 365.4 MB, free: 6.676 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001234/0.1189, allocations: 0.5034 MB / 365.9 MB, free: 6.172 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001488/0.1204, allocations: 1.002 MB / 366.9 MB, free: 5.094 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001443/0.1218, allocations: 0.4985 MB / 367.4 MB, free: 4.559 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005702/0.1224, allocations: 270.9 kB / 367.6 MB, free: 4.285 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.554e-05/0.1225, allocations: 8.141 kB / 367.7 MB, free: 4.277 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.199e-05/0.1225, allocations: 42.55 kB / 367.7 MB, free: 4.227 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.803e-06/0.1225, allocations: 0 / 367.7 MB, free: 4.227 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.214/0.3365, allocations: 5.71 MB / 373.4 MB, free: 20.69 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.153e-05/0.3366, allocations: 151.1 kB / 373.6 MB, free: 20.53 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002337/0.3369, allocations: 200.9 kB / 373.8 MB, free: 20.39 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.602e-05/0.337, allocations: 36.05 kB / 373.8 MB, free: 20.35 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.583e-05/0.337, allocations: 137.9 kB / 373.9 MB, free: 20.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001892/0.3372, allocations: 195.1 kB / 374.1 MB, free: 20.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002998/0.3375, allocations: 106 kB / 374.2 MB, free: 20.03 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.922e-05/0.3376, allocations: 348.8 kB / 374.6 MB, free: 19.7 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00156/0.3392, allocations: 0.6135 MB / 375.2 MB, free: 19.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001672/0.3409, allocations: 0.7997 MB / 376 MB, free: 19 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002804/0.3437, allocations: 1.244 MB / 377.2 MB, free: 18.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.289e-05/0.3437, allocations: 1.375 kB / 377.2 MB, free: 18.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003545/0.3473, allocations: 1.403 MB / 378.6 MB, free: 17.79 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/0.3473, allocations: 6.875 kB / 378.6 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.003e-05/0.3473, allocations: 6.766 kB / 378.6 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.455e-05/0.3474, allocations: 9.562 kB / 378.6 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/0.3487, allocations: 208.6 kB / 378.8 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.544e-05/0.3487, allocations: 14.5 kB / 378.9 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009454/0.3497, allocations: 103.8 kB / 379 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001041/0.3498, allocations: 26.67 kB / 379 MB, free: 17.75 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.0003423/0.3502, allocations: 189.1 kB / 379.2 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003709/0.3505, allocations: 156.5 kB / 379.3 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001704/0.3507, allocations: 67.08 kB / 379.4 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.527e-05/0.3507, allocations: 7.438 kB / 379.4 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.324e-05/0.3508, allocations: 2.031 kB / 379.4 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.189e-05/0.3508, allocations: 4.812 kB / 379.4 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005042/0.3558, allocations: 2.168 MB / 381.6 MB, free: 16.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.401e-05/0.3559, allocations: 11.38 kB / 381.6 MB, free: 16.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007747/0.3567, allocations: 182 kB / 381.8 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.373e-05/0.3567, allocations: 15.16 kB / 381.8 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.354e-05/0.3568, allocations: 31.56 kB / 381.8 MB, free: 16.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-05/0.3568, allocations: 24.41 kB / 381.8 MB, free: 16.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.529e-05/0.3568, allocations: 15.25 kB / 381.8 MB, free: 16.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003106/0.3599, allocations: 1.549 MB / 383.4 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002394/0.3602, allocations: 169.4 kB / 383.6 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.769e-05/0.3603, allocations: 31.11 kB / 383.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005816/0.3609, allocations: 74.31 kB / 383.7 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002309/0.3611, allocations: 95.48 kB / 383.8 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.89e-05/0.3612, allocations: 31.77 kB / 383.8 MB, free: 15.13 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001305/0.3613, allocations: 136.4 kB / 383.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3613, allocations: 4.938 kB / 383.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007117/0.362, allocations: 121.4 kB / 384 MB, free: 15.02 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.0001527/0.3622, allocations: 139.2 kB / 384.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00264/0.3648, allocations: 1.133 MB / 385.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.565e-06/0.3649, allocations: 1.406 kB / 385.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009395/0.3658, allocations: 340.8 kB / 385.6 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000886/0.3667, allocations: 132.6 kB / 385.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002123/0.3688, allocations: 1.172 MB / 386.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002996/0.3692, allocations: 0.8151 MB / 387.8 MB, free: 12.75 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004685/0.3696, allocations: 97.56 kB / 387.9 MB, free: 12.71 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002777/0.3699, allocations: 37.98 kB / 387.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3699, allocations: 0 / 387.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of Templates: time 0.01227/0.3822, allocations: 8.145 MB / 396 MB, free: 8.895 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches