Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.SuperSampled,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.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_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 109 kB / 16.51 MB, free: 6.707 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.001054/0.001054, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.341/1.341, allocations: 222.9 MB / 241.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009153/0.0009153, allocations: 50.39 kB / 299.9 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08824/0.08917, allocations: 49.44 MB / 349.4 MB, free: 4.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003276/0.09248, allocations: 2.361 MB / 351.8 MB, free: 2.277 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.0936, allocations: 0.7677 MB / 352.5 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001155/0.09373, allocations: 4 kB / 352.5 MB, free: 1.5 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002602/0.09401, allocations: 43.7 kB / 352.6 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001555/0.09417, allocations: 43.75 kB / 352.6 MB, free: 1.414 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004161/0.0946, allocations: 139.8 kB / 352.7 MB, free: 1.277 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004021/0.09501, allocations: 355.5 kB / 353.1 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001824/0.0952, allocations: 91.25 kB / 353.2 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001868/0.0954, allocations: 143.5 kB / 353.3 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001977/0.0956, allocations: 167.3 kB / 353.5 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.481e-05/0.09566, allocations: 20 kB / 353.5 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.402e-05/0.09571, allocations: 24 kB / 353.5 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.076e-05/0.0958, allocations: 75.73 kB / 353.6 MB, free: 432 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000124/0.09593, allocations: 135.3 kB / 353.7 MB, free: 296 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002738/0.09621, allocations: 307.3 kB / 354 MB, free: 15.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.09623, allocations: 0 / 354 MB, free: 15.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.09623, allocations: 4 kB / 354 MB, free: 15.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.09625, allocations: 0 / 354 MB, free: 15.98 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.001153/0.0974, allocations: 0.6146 MB / 354.7 MB, free: 15.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.09745, allocations: 8.031 kB / 354.7 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.927e-05/0.09754, allocations: 44.55 kB / 354.7 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003236/0.09787, allocations: 260.3 kB / 355 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001854/0.09807, allocations: 142.1 kB / 355.1 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.606e-05/0.09813, allocations: 28.38 kB / 355.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001124/0.09926, allocations: 0.5605 MB / 355.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.147e-05/0.0993, allocations: 4 kB / 355.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.842e-05/0.09934, allocations: 19.92 kB / 355.7 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.09936, allocations: 8 kB / 355.7 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001308/0.1007, allocations: 0.5035 MB / 356.2 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001382/0.1021, allocations: 1.002 MB / 357.2 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001495/0.1036, allocations: 0.5096 MB / 357.7 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005603/0.1041, allocations: 259.4 kB / 358 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.291e-05/0.1042, allocations: 8 kB / 358 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.125e-05/0.1042, allocations: 42.5 kB / 358 MB, free: 11.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.974e-06/0.1043, allocations: 0 / 358 MB, free: 11.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03879/0.143, allocations: 5.697 MB / 363.7 MB, free: 6.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/0.1432, allocations: 153.1 kB / 363.9 MB, free: 5.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002005/0.1434, allocations: 203 kB / 364.1 MB, free: 5.633 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.689e-05/0.1435, allocations: 37.7 kB / 364.1 MB, free: 5.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.879e-05/0.1436, allocations: 145.5 kB / 364.3 MB, free: 5.445 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001791/0.1438, allocations: 185.4 kB / 364.4 MB, free: 5.262 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002897/0.1441, allocations: 110.6 kB / 364.5 MB, free: 5.145 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.1442, allocations: 346.8 kB / 364.9 MB, free: 4.797 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001441/0.1456, allocations: 0.6149 MB / 365.5 MB, free: 4.184 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001548/0.1472, allocations: 0.7963 MB / 366.3 MB, free: 3.312 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002742/0.1499, allocations: 1.247 MB / 367.5 MB, free: 1.988 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.15, allocations: 0 / 367.5 MB, free: 1.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003249/0.1532, allocations: 1.398 MB / 368.9 MB, free: 0.582 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.1532, allocations: 8 kB / 368.9 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.1533, allocations: 4 kB / 369 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.166e-05/0.1533, allocations: 12 kB / 369 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001329/0.1546, allocations: 215.7 kB / 369.2 MB, free: 356 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.799e-05/0.1546, allocations: 19.91 kB / 369.2 MB, free: 336 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009196/0.1556, allocations: 99.73 kB / 369.3 MB, free: 236 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.652e-05/0.1557, allocations: 31.98 kB / 369.3 MB, free: 204 kB / 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.0002934/0.156, allocations: 173.6 kB / 369.5 MB, free: 20 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.1736/0.3296, allocations: 164.3 kB / 369.7 MB, free: 26.65 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001976/0.3298, allocations: 62.67 kB / 369.7 MB, free: 26.64 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.218e-05/0.3299, allocations: 7.406 kB / 369.7 MB, free: 26.64 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/0.3299, allocations: 1.438 kB / 369.7 MB, free: 26.64 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.168e-05/0.3299, allocations: 5.016 kB / 369.7 MB, free: 26.64 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004963/0.3349, allocations: 2.164 MB / 371.9 MB, free: 25.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.667e-05/0.3349, allocations: 11.12 kB / 371.9 MB, free: 25.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007789/0.3357, allocations: 189.3 kB / 372.1 MB, free: 25.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.022e-05/0.3357, allocations: 14.56 kB / 372.1 MB, free: 25.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.879e-05/0.3358, allocations: 24.27 kB / 372.1 MB, free: 25.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.358e-05/0.3358, allocations: 20.19 kB / 372.1 MB, free: 25.92 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.67e-05/0.3358, allocations: 19.28 kB / 372.2 MB, free: 25.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002806/0.3386, allocations: 1.554 MB / 373.7 MB, free: 25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001749/0.3388, allocations: 166.1 kB / 373.9 MB, free: 24.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.128e-05/0.3389, allocations: 25.06 kB / 373.9 MB, free: 24.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005697/0.3395, allocations: 78.22 kB / 374 MB, free: 24.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002277/0.3397, allocations: 97.78 kB / 374.1 MB, free: 24.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.096e-05/0.3398, allocations: 34.86 kB / 374.1 MB, free: 24.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001151/0.3399, allocations: 137.1 kB / 374.2 MB, free: 24.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3399, allocations: 0 / 374.2 MB, free: 24.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006337/0.3405, allocations: 121.8 kB / 374.4 MB, free: 24.71 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.0001266/0.3407, allocations: 139.7 kB / 374.5 MB, free: 24.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002351/0.343, allocations: 1.12 MB / 375.6 MB, free: 24.17 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.343, allocations: 1.406 kB / 375.6 MB, free: 24.17 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008674/0.3439, allocations: 343.6 kB / 376 MB, free: 24.08 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008167/0.3447, allocations: 135.1 kB / 376.1 MB, free: 24.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001991/0.3467, allocations: 1.312 MB / 377.4 MB, free: 23.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002561/0.347, allocations: 0.8123 MB / 378.2 MB, free: 22.33 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005662/0.3476, allocations: 91.83 kB / 378.3 MB, free: 22.29 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002885/0.3479, allocations: 38.48 kB / 378.3 MB, free: 22.29 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3479, allocations: 0 / 378.3 MB, free: 22.29 MB / 302.1 MB Notification: Performance of Templates: time 0.01138/0.3593, allocations: 7.542 MB / 385.9 MB, free: 19.82 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches