Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,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.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.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001058/0.001059, allocations: 101.3 kB / 16.5 MB, free: 6.648 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: 194.4 kB / 17.42 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.312/1.312, allocations: 222.9 MB / 241.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001118/0.001118, allocations: 51.45 kB / 299.9 MB, free: 6.109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08979/0.09093, allocations: 49.45 MB / 349.4 MB, free: 4.648 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003375/0.09433, allocations: 2.373 MB / 351.8 MB, free: 2.254 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001253/0.0956, allocations: 0.8027 MB / 352.6 MB, free: 1.445 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001589/0.09578, allocations: 4 kB / 352.6 MB, free: 1.441 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002562/0.09607, allocations: 43.7 kB / 352.6 MB, free: 1.398 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001919/0.09627, allocations: 47.75 kB / 352.7 MB, free: 1.352 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004505/0.09673, allocations: 155.7 kB / 352.8 MB, free: 1.199 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003629/0.0971, allocations: 359.6 kB / 353.2 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001717/0.09728, allocations: 91.83 kB / 353.3 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002158/0.0975, allocations: 143.5 kB / 353.4 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002147/0.09772, allocations: 179.2 kB / 353.6 MB, free: 452 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.292e-05/0.09779, allocations: 20 kB / 353.6 MB, free: 432 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.666e-05/0.09784, allocations: 24 kB / 353.6 MB, free: 408 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.116e-05/0.09794, allocations: 79.72 kB / 353.7 MB, free: 328 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001278/0.09807, allocations: 143.2 kB / 353.8 MB, free: 184 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002674/0.09834, allocations: 307.2 kB / 354.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.09836, allocations: 4 kB / 354.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.51e-07/0.09836, allocations: 0 / 354.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.09838, allocations: 0 / 354.1 MB, free: 15.88 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.001108/0.09949, allocations: 0.6201 MB / 354.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.181e-05/0.09953, allocations: 8.031 kB / 354.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.844e-05/0.09962, allocations: 48.5 kB / 354.8 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002941/0.09992, allocations: 272.3 kB / 355.1 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001736/0.1001, allocations: 138.3 kB / 355.2 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.751e-05/0.1002, allocations: 36.28 kB / 355.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001077/0.1012, allocations: 0.57 MB / 355.8 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.1013, allocations: 0 / 355.8 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.644e-05/0.1013, allocations: 12 kB / 355.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.1013, allocations: 11.94 kB / 355.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00126/0.1026, allocations: 0.5035 MB / 356.4 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001352/0.104, allocations: 0.9944 MB / 357.3 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001412/0.1054, allocations: 0.514 MB / 357.9 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005855/0.106, allocations: 255.4 kB / 358.1 MB, free: 11.65 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.759e-05/0.106, allocations: 8.141 kB / 358.1 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.803e-05/0.1061, allocations: 50.55 kB / 358.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.683e-06/0.1061, allocations: 0 / 358.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03858/0.1447, allocations: 5.712 MB / 363.9 MB, free: 5.859 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.869e-05/0.1448, allocations: 148.9 kB / 364 MB, free: 5.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002014/0.145, allocations: 200.2 kB / 364.2 MB, free: 5.473 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.179e-05/0.1451, allocations: 37.7 kB / 364.3 MB, free: 5.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.65e-05/0.1452, allocations: 141.5 kB / 364.4 MB, free: 5.289 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001874/0.1454, allocations: 193.3 kB / 364.6 MB, free: 5.098 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002867/0.1457, allocations: 114.7 kB / 364.7 MB, free: 4.977 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.1458, allocations: 342.8 kB / 365 MB, free: 4.633 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001475/0.1473, allocations: 0.611 MB / 365.6 MB, free: 4.023 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001548/0.1488, allocations: 0.8003 MB / 366.4 MB, free: 3.148 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002755/0.1516, allocations: 1.247 MB / 367.7 MB, free: 1.824 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/0.1516, allocations: 8 kB / 367.7 MB, free: 1.816 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00325/0.1549, allocations: 1.398 MB / 369.1 MB, free: 420 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.1549, allocations: 8.375 kB / 369.1 MB, free: 412 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/0.1549, allocations: 8.312 kB / 369.1 MB, free: 404 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.1549, allocations: 8 kB / 369.1 MB, free: 396 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001321/0.1563, allocations: 211.6 kB / 369.3 MB, free: 184 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.571e-05/0.1563, allocations: 11.94 kB / 369.3 MB, free: 172 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000927/0.1572, allocations: 107.8 kB / 369.4 MB, free: 64 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.569e-05/0.1573, allocations: 31.98 kB / 369.5 MB, free: 32 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.1565/0.3138, allocations: 170.4 kB / 369.6 MB, free: 26.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003676/0.3142, allocations: 157 kB / 369.8 MB, free: 26.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001499/0.3144, allocations: 60.78 kB / 369.9 MB, free: 26.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.161e-05/0.3144, allocations: 13.02 kB / 369.9 MB, free: 26.8 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.3144, allocations: 2.031 kB / 369.9 MB, free: 26.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.818e-06/0.3144, allocations: 4.516 kB / 369.9 MB, free: 26.8 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004513/0.3189, allocations: 2.165 MB / 372 MB, free: 25.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.688e-05/0.319, allocations: 10.53 kB / 372 MB, free: 25.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007355/0.3197, allocations: 195.2 kB / 372.2 MB, free: 25.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.499e-05/0.3197, allocations: 12.59 kB / 372.2 MB, free: 25.77 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.198e-05/0.3198, allocations: 24.81 kB / 372.3 MB, free: 25.76 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-05/0.3198, allocations: 23.66 kB / 372.3 MB, free: 25.76 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.226e-05/0.3198, allocations: 15.91 kB / 372.3 MB, free: 25.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002879/0.3227, allocations: 1.556 MB / 373.9 MB, free: 24.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002049/0.3229, allocations: 164.7 kB / 374 MB, free: 24.71 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.151e-05/0.323, allocations: 26.52 kB / 374.1 MB, free: 24.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005928/0.3236, allocations: 81.48 kB / 374.1 MB, free: 24.69 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002244/0.3239, allocations: 90.25 kB / 374.2 MB, free: 24.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.471e-05/0.3239, allocations: 35.69 kB / 374.3 MB, free: 24.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001273/0.3241, allocations: 138 kB / 374.4 MB, free: 24.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3241, allocations: 0 / 374.4 MB, free: 24.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006922/0.3248, allocations: 122.7 kB / 374.5 MB, free: 24.55 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.0001726/0.3249, allocations: 140.1 kB / 374.6 MB, free: 24.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002421/0.3274, allocations: 1.123 MB / 375.8 MB, free: 24.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.678e-06/0.3274, allocations: 1.656 kB / 375.8 MB, free: 24.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008864/0.3283, allocations: 344.6 kB / 376.1 MB, free: 23.92 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000866/0.3292, allocations: 137.6 kB / 376.2 MB, free: 23.88 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002115/0.3313, allocations: 1.321 MB / 377.6 MB, free: 22.87 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002933/0.3316, allocations: 0.8184 MB / 378.4 MB, free: 22.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005842/0.3322, allocations: 91.73 kB / 378.5 MB, free: 22.12 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002962/0.3325, allocations: 37.27 kB / 378.5 MB, free: 22.12 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3325, allocations: 0.9375 kB / 378.5 MB, free: 22.12 MB / 302.1 MB Notification: Performance of Templates: time 0.01197/0.3445, allocations: 7.594 MB / 386.1 MB, free: 19.62 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches