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.001078/0.001078, allocations: 104.1 kB / 17.32 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001066/0.001066, allocations: 209.8 kB / 18.26 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 63.7 kB / 306.4 MB, free: 0.9766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09874/0.1, allocations: 50.53 MB / 357 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003662/0.1037, allocations: 2.374 MB / 359.3 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001518/0.1053, allocations: 0.799 MB / 360.1 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002004/0.1055, allocations: 4 kB / 360.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002633/0.1058, allocations: 39.77 kB / 360.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002186/0.106, allocations: 47.69 kB / 360.2 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005074/0.1065, allocations: 151.7 kB / 360.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004235/0.107, allocations: 375.5 kB / 360.7 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001933/0.1072, allocations: 99.34 kB / 360.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003171/0.1075, allocations: 163.5 kB / 361 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002337/0.1078, allocations: 175.3 kB / 361.2 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.018e-05/0.1078, allocations: 32 kB / 361.2 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.788e-05/0.1079, allocations: 32 kB / 361.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.413e-05/0.108, allocations: 95.72 kB / 361.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001305/0.1081, allocations: 147.3 kB / 361.5 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003253/0.1084, allocations: 315.2 kB / 361.8 MB, free: 9.613 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.1085, allocations: 4 kB / 361.8 MB, free: 9.609 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.1085, allocations: 4 kB / 361.8 MB, free: 9.605 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.1085, allocations: 0 / 361.8 MB, free: 9.605 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.00129/0.1098, allocations: 0.6123 MB / 362.4 MB, free: 8.945 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.472e-05/0.1098, allocations: 8.031 kB / 362.4 MB, free: 8.938 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.894e-05/0.1099, allocations: 36.56 kB / 362.4 MB, free: 8.902 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003098/0.1102, allocations: 268.4 kB / 362.7 MB, free: 8.602 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001833/0.1104, allocations: 134.1 kB / 362.8 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.996e-05/0.1105, allocations: 36.36 kB / 362.9 MB, free: 8.418 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001116/0.1116, allocations: 0.556 MB / 363.4 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.811e-05/0.1116, allocations: 3.938 kB / 363.4 MB, free: 7.836 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.521e-05/0.1117, allocations: 12 kB / 363.4 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.196e-06/0.1117, allocations: 4 kB / 363.4 MB, free: 7.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001333/0.113, allocations: 0.5112 MB / 364 MB, free: 7.309 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001427/0.1145, allocations: 1.002 MB / 365 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001498/0.116, allocations: 0.4985 MB / 365.5 MB, free: 5.695 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005861/0.1166, allocations: 259.3 kB / 365.7 MB, free: 5.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.128e-05/0.1167, allocations: 12 kB / 365.7 MB, free: 5.418 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.671e-05/0.1167, allocations: 42.55 kB / 365.8 MB, free: 5.367 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 3.046e-06/0.1167, allocations: 3.984 kB / 365.8 MB, free: 5.363 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2211/0.3378, allocations: 5.716 MB / 371.5 MB, free: 20.86 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/0.338, allocations: 148.3 kB / 371.6 MB, free: 20.7 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002363/0.3382, allocations: 195 kB / 371.8 MB, free: 20.6 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.109e-05/0.3383, allocations: 41.61 kB / 371.9 MB, free: 20.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.679e-05/0.3384, allocations: 139.9 kB / 372 MB, free: 20.49 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001688/0.3386, allocations: 192.2 kB / 372.2 MB, free: 20.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003025/0.3389, allocations: 112.5 kB / 372.3 MB, free: 20.37 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.595e-05/0.339, allocations: 343.2 kB / 372.6 MB, free: 20.06 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001521/0.3405, allocations: 0.6153 MB / 373.2 MB, free: 20.05 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001636/0.3421, allocations: 0.7961 MB / 374 MB, free: 19.6 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002996/0.3451, allocations: 1.255 MB / 375.3 MB, free: 18.96 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.734e-06/0.3452, allocations: 2.75 kB / 375.3 MB, free: 18.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003508/0.3487, allocations: 1.392 MB / 376.7 MB, free: 18.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.3487, allocations: 7 kB / 376.7 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.3487, allocations: 6.172 kB / 376.7 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.512e-05/0.3487, allocations: 18.81 kB / 376.7 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001326/0.3501, allocations: 207.2 kB / 376.9 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.766e-05/0.3501, allocations: 13.16 kB / 376.9 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009351/0.351, allocations: 106.8 kB / 377 MB, free: 18.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.619e-05/0.3511, allocations: 29.36 kB / 377.1 MB, free: 18.34 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.0003022/0.3515, allocations: 181.6 kB / 377.2 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003109/0.3518, allocations: 157.2 kB / 377.4 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000141/0.3519, allocations: 63.12 kB / 377.5 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.3519, allocations: 7.625 kB / 377.5 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.851e-05/0.352, allocations: 3.281 kB / 377.5 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.135e-05/0.352, allocations: 8.5 kB / 377.5 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004625/0.3566, allocations: 2.157 MB / 379.6 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.404e-05/0.3566, allocations: 15.41 kB / 379.7 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007086/0.3574, allocations: 186.1 kB / 379.8 MB, free: 16.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.442e-05/0.3574, allocations: 13.91 kB / 379.8 MB, free: 16.88 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.153e-05/0.3574, allocations: 24.19 kB / 379.9 MB, free: 16.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.061e-05/0.3575, allocations: 24.05 kB / 379.9 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.341e-05/0.3575, allocations: 19.12 kB / 379.9 MB, free: 16.85 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002882/0.3604, allocations: 1.557 MB / 381.5 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001625/0.3605, allocations: 164.3 kB / 381.6 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.955e-05/0.3606, allocations: 26.47 kB / 381.7 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005722/0.3612, allocations: 81.8 kB / 381.7 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002025/0.3614, allocations: 93.03 kB / 381.8 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.111e-05/0.3615, allocations: 30.61 kB / 381.9 MB, free: 15.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001183/0.3616, allocations: 144.8 kB / 382 MB, free: 15.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3616, allocations: 4 kB / 382 MB, free: 15.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006407/0.3623, allocations: 121.9 kB / 382.1 MB, free: 15.59 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.0001531/0.3624, allocations: 137.9 kB / 382.3 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002692/0.3651, allocations: 1.158 MB / 383.4 MB, free: 15.04 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.3651, allocations: 1.344 kB / 383.4 MB, free: 15.04 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009417/0.3661, allocations: 336.3 kB / 383.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008676/0.3669, allocations: 133.6 kB / 383.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002182/0.3691, allocations: 1.309 MB / 385.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003012/0.3695, allocations: 0.8135 MB / 386 MB, free: 13.17 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005987/0.3701, allocations: 100.8 kB / 386.1 MB, free: 13.13 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002754/0.3703, allocations: 39.42 kB / 386.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3704, allocations: 0 / 386.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of Templates: time 0.01339/0.3837, allocations: 7.947 MB / 394.1 MB, free: 9.789 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches