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.00113/0.001131, allocations: 110.7 kB / 16.92 MB, free: 6.141 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.001004/0.001004, allocations: 191.3 kB / 17.85 MB, free: 5.309 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.302/1.302, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001055/0.001055, allocations: 60.09 kB / 300.6 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09224/0.09332, allocations: 49.44 MB / 350 MB, free: 4.441 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003491/0.09686, allocations: 2.32 MB / 352.4 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001271/0.09815, allocations: 0.7677 MB / 353.1 MB, free: 1.324 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001195/0.09828, allocations: 11.94 kB / 353.1 MB, free: 1.312 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002741/0.09856, allocations: 51.58 kB / 353.2 MB, free: 1.262 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001721/0.09876, allocations: 51.56 kB / 353.2 MB, free: 1.211 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004132/0.09918, allocations: 163.7 kB / 353.4 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003209/0.09951, allocations: 371.6 kB / 353.8 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001808/0.0997, allocations: 103.2 kB / 353.9 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000183/0.09989, allocations: 159.4 kB / 354 MB, free: 440 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002041/0.1001, allocations: 175.3 kB / 354.2 MB, free: 264 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.027e-05/0.1002, allocations: 32 kB / 354.2 MB, free: 232 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.666e-05/0.1002, allocations: 32 kB / 354.3 MB, free: 200 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.056e-05/0.1003, allocations: 87.8 kB / 354.3 MB, free: 112 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001273/0.1004, allocations: 143.3 kB / 354.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002748/0.1007, allocations: 319.1 kB / 354.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.1007, allocations: 4 kB / 354.8 MB, free: 15.65 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1007, allocations: 0 / 354.8 MB, free: 15.65 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.1008, allocations: 4 kB / 354.8 MB, free: 15.65 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.001072/0.1018, allocations: 0.6123 MB / 355.4 MB, free: 14.99 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.226e-05/0.1019, allocations: 11.89 kB / 355.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.64e-05/0.102, allocations: 40.56 kB / 355.5 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000289/0.1022, allocations: 268.3 kB / 355.7 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001711/0.1024, allocations: 130.2 kB / 355.9 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.432e-05/0.1025, allocations: 36.31 kB / 355.9 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001087/0.1036, allocations: 0.5566 MB / 356.4 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.1036, allocations: 8 kB / 356.5 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.5e-05/0.1037, allocations: 12 kB / 356.5 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.1037, allocations: 4 kB / 356.5 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001325/0.105, allocations: 0.5079 MB / 357 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00134/0.1064, allocations: 1.006 MB / 358 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001487/0.1079, allocations: 0.5024 MB / 358.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000587/0.1084, allocations: 263.3 kB / 358.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.971e-05/0.1085, allocations: 4 kB / 358.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.139e-05/0.1085, allocations: 42.56 kB / 358.8 MB, free: 11.4 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.443e-06/0.1085, allocations: 0 / 358.8 MB, free: 11.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03742/0.146, allocations: 5.701 MB / 364.5 MB, free: 5.688 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/0.1461, allocations: 145 kB / 364.6 MB, free: 5.516 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002123/0.1463, allocations: 203 kB / 364.8 MB, free: 5.309 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.829e-05/0.1464, allocations: 33.7 kB / 364.9 MB, free: 5.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.28e-05/0.1465, allocations: 149.5 kB / 365 MB, free: 5.121 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001884/0.1467, allocations: 185.4 kB / 365.2 MB, free: 4.938 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002723/0.147, allocations: 106.6 kB / 365.3 MB, free: 4.824 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.1471, allocations: 346.8 kB / 365.6 MB, free: 4.477 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00151/0.1486, allocations: 0.6226 MB / 366.3 MB, free: 3.855 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001642/0.1503, allocations: 0.7925 MB / 367 MB, free: 2.984 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002959/0.1532, allocations: 1.255 MB / 368.3 MB, free: 1.652 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.1532, allocations: 0 / 368.3 MB, free: 1.652 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003405/0.1567, allocations: 1.398 MB / 369.7 MB, free: 252 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/0.1567, allocations: 8 kB / 369.7 MB, free: 244 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.1567, allocations: 4 kB / 369.7 MB, free: 240 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.772e-05/0.1567, allocations: 8 kB / 369.7 MB, free: 232 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001311/0.1581, allocations: 216 kB / 369.9 MB, free: 16 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.602e-05/0.1581, allocations: 11.98 kB / 369.9 MB, free: 4 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.1982/0.3563, allocations: 95.06 kB / 370 MB, free: 26.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001114/0.3565, allocations: 28.69 kB / 370.1 MB, free: 26.31 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.0003596/0.3568, allocations: 185 kB / 370.2 MB, free: 26.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003746/0.3572, allocations: 159.7 kB / 370.4 MB, free: 26.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000151/0.3574, allocations: 63.19 kB / 370.5 MB, free: 26.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.42e-05/0.3574, allocations: 8.062 kB / 370.5 MB, free: 26.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/0.3574, allocations: 1.312 kB / 370.5 MB, free: 26.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.382e-05/0.3574, allocations: 6.75 kB / 370.5 MB, free: 26.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004846/0.3623, allocations: 2.165 MB / 372.6 MB, free: 25.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.715e-05/0.3623, allocations: 11.59 kB / 372.7 MB, free: 25.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007595/0.3631, allocations: 182.6 kB / 372.8 MB, free: 25.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.949e-05/0.3631, allocations: 17.31 kB / 372.9 MB, free: 25.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.384e-05/0.3632, allocations: 23.48 kB / 372.9 MB, free: 25.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.542e-05/0.3632, allocations: 21.34 kB / 372.9 MB, free: 25.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.437e-05/0.3632, allocations: 14.81 kB / 372.9 MB, free: 25.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003237/0.3665, allocations: 1.561 MB / 374.5 MB, free: 24.49 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000206/0.3667, allocations: 160.4 kB / 374.6 MB, free: 24.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.677e-05/0.3668, allocations: 33.86 kB / 374.7 MB, free: 24.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005693/0.3673, allocations: 76.77 kB / 374.7 MB, free: 24.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002537/0.3676, allocations: 92.86 kB / 374.8 MB, free: 24.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.82e-05/0.3677, allocations: 30.59 kB / 374.9 MB, free: 24.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001839/0.3679, allocations: 141.9 kB / 375 MB, free: 24.2 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3679, allocations: 3.844 kB / 375 MB, free: 24.2 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008055/0.3687, allocations: 123.1 kB / 375.1 MB, free: 24.18 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.0002119/0.3689, allocations: 143.2 kB / 375.3 MB, free: 24.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003283/0.3722, allocations: 1.158 MB / 376.4 MB, free: 23.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/0.3722, allocations: 1.281 kB / 376.4 MB, free: 23.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001023/0.3732, allocations: 339.7 kB / 376.7 MB, free: 23.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008889/0.3741, allocations: 139.9 kB / 376.9 MB, free: 23.49 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002248/0.3764, allocations: 1.171 MB / 378.1 MB, free: 22.63 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003699/0.3768, allocations: 0.8165 MB / 378.9 MB, free: 21.92 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005661/0.3774, allocations: 91.59 kB / 379 MB, free: 21.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002724/0.3776, allocations: 38.89 kB / 379 MB, free: 21.88 MB / 302.1 MB Notification: Performance of SimCode: time 4.2e-07/0.3777, allocations: 0 / 379 MB, free: 21.88 MB / 302.1 MB Notification: Performance of Templates: time 0.01504/0.3927, allocations: 8.143 MB / 387.1 MB, free: 19.02 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