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.001779/0.001779, allocations: 113.1 kB / 16.62 MB, free: 6.812 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.001945/0.001946, allocations: 189.8 kB / 17.55 MB, free: 5.934 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.324/1.324, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001766/0.001767, allocations: 43.77 kB / 300.1 MB, free: 6.211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1328, allocations: 49.45 MB / 349.6 MB, free: 4.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.006/0.1388, allocations: 2.35 MB / 351.9 MB, free: 2.387 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002279/0.1412, allocations: 0.7677 MB / 352.7 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002565/0.1414, allocations: 7.938 kB / 352.7 MB, free: 1.605 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004334/0.1419, allocations: 39.77 kB / 352.7 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003634/0.1423, allocations: 51.69 kB / 352.8 MB, free: 1.516 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008462/0.1432, allocations: 152.3 kB / 352.9 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006365/0.1438, allocations: 371.6 kB / 353.3 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003046/0.1442, allocations: 95.23 kB / 353.4 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003951/0.1446, allocations: 167.4 kB / 353.5 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003643/0.145, allocations: 175.3 kB / 353.7 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.741e-05/0.1451, allocations: 32 kB / 353.8 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.689e-05/0.1452, allocations: 32 kB / 353.8 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001528/0.1453, allocations: 87.8 kB / 353.9 MB, free: 436 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002432/0.1456, allocations: 155.2 kB / 354 MB, free: 280 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000528/0.1461, allocations: 315.2 kB / 354.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.1462, allocations: 0 / 354.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1462, allocations: 0 / 354.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.1462, allocations: 0 / 354.3 MB, free: 15.96 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.001864/0.1481, allocations: 0.6162 MB / 354.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.1481, allocations: 15.89 kB / 355 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001251/0.1483, allocations: 40.55 kB / 355 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005048/0.1488, allocations: 272.3 kB / 355.3 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003176/0.1491, allocations: 130.2 kB / 355.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.913e-05/0.1493, allocations: 32.38 kB / 355.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00183/0.1511, allocations: 0.5566 MB / 356 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.561e-05/0.1511, allocations: 4 kB / 356 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.457e-05/0.1512, allocations: 12 kB / 356 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.876e-05/0.1512, allocations: 8 kB / 356 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002439/0.1537, allocations: 0.5136 MB / 356.5 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002473/0.1562, allocations: 1.002 MB / 357.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002758/0.159, allocations: 0.5024 MB / 358 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001145/0.1601, allocations: 259.3 kB / 358.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.847e-05/0.1602, allocations: 8 kB / 358.3 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.77e-05/0.1603, allocations: 42.56 kB / 358.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 3.336e-06/0.1603, allocations: 3.938 kB / 358.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.06995/0.2303, allocations: 5.698 MB / 364 MB, free: 5.996 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001318/0.2304, allocations: 145 kB / 364.2 MB, free: 5.824 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003434/0.2308, allocations: 199 kB / 364.4 MB, free: 5.621 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001499/0.231, allocations: 37.7 kB / 364.4 MB, free: 5.578 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001306/0.2311, allocations: 141.5 kB / 364.5 MB, free: 5.438 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003249/0.2315, allocations: 189.4 kB / 364.7 MB, free: 5.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005116/0.232, allocations: 114.6 kB / 364.8 MB, free: 5.129 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.2322, allocations: 346.7 kB / 365.2 MB, free: 4.781 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002901/0.2351, allocations: 0.6188 MB / 365.8 MB, free: 4.164 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003023/0.2381, allocations: 0.7924 MB / 366.6 MB, free: 3.297 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0056/0.2438, allocations: 1.255 MB / 367.8 MB, free: 1.965 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.734e-06/0.2438, allocations: 4 kB / 367.8 MB, free: 1.961 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.005628/0.2494, allocations: 1.394 MB / 369.2 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.903e-05/0.2495, allocations: 4 kB / 369.2 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.241e-05/0.2495, allocations: 8 kB / 369.2 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.253e-05/0.2496, allocations: 8 kB / 369.3 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002101/0.2517, allocations: 207.6 kB / 369.5 MB, free: 344 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.13e-05/0.2517, allocations: 20.02 kB / 369.5 MB, free: 324 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001601/0.2533, allocations: 99.73 kB / 369.6 MB, free: 224 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001406/0.2535, allocations: 27.98 kB / 369.6 MB, free: 196 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.0004577/0.254, allocations: 185.5 kB / 369.8 MB, free: 0 / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.1577/0.4117, allocations: 148.7 kB / 369.9 MB, free: 26.76 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001591/0.4119, allocations: 65.56 kB / 370 MB, free: 26.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.4119, allocations: 8.219 kB / 370 MB, free: 26.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/0.4119, allocations: 2.406 kB / 370 MB, free: 26.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.477e-06/0.412, allocations: 4.141 kB / 370 MB, free: 26.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00442/0.4164, allocations: 2.176 MB / 372.2 MB, free: 26.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.561e-05/0.4164, allocations: 10.38 kB / 372.2 MB, free: 26.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000732/0.4171, allocations: 185.4 kB / 372.4 MB, free: 26.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.575e-05/0.4172, allocations: 13.81 kB / 372.4 MB, free: 26.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.217e-05/0.4172, allocations: 24.78 kB / 372.4 MB, free: 26.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.841e-05/0.4173, allocations: 26.03 kB / 372.4 MB, free: 26.04 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.344e-05/0.4173, allocations: 20.09 kB / 372.5 MB, free: 26.03 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002819/0.4201, allocations: 1.556 MB / 374 MB, free: 25.12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001435/0.4202, allocations: 159.4 kB / 374.2 MB, free: 24.99 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.02e-05/0.4203, allocations: 30.97 kB / 374.2 MB, free: 24.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005538/0.4209, allocations: 78.09 kB / 374.3 MB, free: 24.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001751/0.4211, allocations: 96.8 kB / 374.4 MB, free: 24.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.525e-05/0.4211, allocations: 30.47 kB / 374.4 MB, free: 24.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.01e-05/0.4212, allocations: 141.5 kB / 374.5 MB, free: 24.83 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4212, allocations: 0 / 374.5 MB, free: 24.83 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006238/0.4218, allocations: 122.9 kB / 374.7 MB, free: 24.81 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.0001262/0.422, allocations: 136 kB / 374.8 MB, free: 24.7 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002464/0.4245, allocations: 1.15 MB / 375.9 MB, free: 24.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.4245, allocations: 2.094 kB / 375.9 MB, free: 24.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008933/0.4254, allocations: 346.9 kB / 376.3 MB, free: 24.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008069/0.4262, allocations: 132.4 kB / 376.4 MB, free: 24.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001919/0.4281, allocations: 1.325 MB / 377.7 MB, free: 23.12 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002477/0.4284, allocations: 0.8125 MB / 378.5 MB, free: 22.42 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005689/0.4289, allocations: 90.06 kB / 378.6 MB, free: 22.38 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000282/0.4292, allocations: 38.17 kB / 378.7 MB, free: 22.38 MB / 302.1 MB Notification: Performance of SimCode: time 1.223e-06/0.4292, allocations: 1.25 kB / 378.7 MB, free: 22.38 MB / 302.1 MB Notification: Performance of Templates: time 0.01094/0.4402, allocations: 7.952 MB / 386.6 MB, free: 19.61 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