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.001597/0.001597, allocations: 106.3 kB / 17.16 MB, free: 6.324 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.001844/0.001844, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.113/2.113, allocations: 222.9 MB / 241.8 MB, free: 13.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 56.44 kB / 300.6 MB, free: 6.062 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1434/0.1446, allocations: 49.45 MB / 350.1 MB, free: 4.605 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.005553/0.1503, allocations: 2.35 MB / 352.4 MB, free: 2.234 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002293/0.1526, allocations: 0.7677 MB / 353.2 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004586/0.1531, allocations: 7.938 kB / 353.2 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005481/0.1538, allocations: 39.75 kB / 353.2 MB, free: 1.414 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005128/0.1543, allocations: 55.69 kB / 353.3 MB, free: 1.359 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009138/0.1553, allocations: 139.8 kB / 353.4 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007372/0.156, allocations: 351.6 kB / 353.8 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002916/0.1563, allocations: 87.2 kB / 353.8 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004123/0.1567, allocations: 147.5 kB / 354 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003931/0.1572, allocations: 163.2 kB / 354.1 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001059/0.1573, allocations: 24 kB / 354.2 MB, free: 480 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.202e-05/0.1574, allocations: 20 kB / 354.2 MB, free: 460 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001762/0.1575, allocations: 83.77 kB / 354.3 MB, free: 376 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001998/0.1577, allocations: 131.2 kB / 354.4 MB, free: 244 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003734/0.1581, allocations: 235.7 kB / 354.6 MB, free: 8 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.1582, allocations: 0 / 354.6 MB, free: 8 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1582, allocations: 0 / 354.6 MB, free: 8 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.879e-05/0.1582, allocations: 0 / 354.6 MB, free: 8 kB / 286.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.001749/0.1599, allocations: 0.6162 MB / 355.2 MB, free: 15.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.614e-05/0.16, allocations: 8.031 kB / 355.2 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001194/0.1601, allocations: 36.56 kB / 355.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004443/0.1606, allocations: 272.3 kB / 355.6 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002423/0.1608, allocations: 134.2 kB / 355.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.058e-05/0.1609, allocations: 32.38 kB / 355.7 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001391/0.1623, allocations: 0.5544 MB / 356.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.551e-05/0.1624, allocations: 4 kB / 356.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.284e-05/0.1624, allocations: 8 kB / 356.3 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.515e-05/0.1625, allocations: 8 kB / 356.3 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001459/0.1639, allocations: 0.5112 MB / 356.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001896/0.1658, allocations: 0.9983 MB / 357.8 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001699/0.1676, allocations: 0.5063 MB / 358.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006381/0.1682, allocations: 259.4 kB / 358.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.589e-05/0.1683, allocations: 11.94 kB / 358.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.682e-05/0.1683, allocations: 38.56 kB / 358.6 MB, free: 11.76 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 3.687e-06/0.1684, allocations: 4 kB / 358.6 MB, free: 11.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.04134/0.2097, allocations: 5.702 MB / 364.3 MB, free: 6.043 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00016/0.2099, allocations: 141 kB / 364.5 MB, free: 5.875 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003282/0.2103, allocations: 203 kB / 364.6 MB, free: 5.668 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001051/0.2104, allocations: 41.64 kB / 364.7 MB, free: 5.621 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.2105, allocations: 141.5 kB / 364.8 MB, free: 5.48 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002644/0.2108, allocations: 185.4 kB / 365 MB, free: 5.297 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003525/0.2112, allocations: 114.6 kB / 365.1 MB, free: 5.176 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001939/0.2114, allocations: 347.2 kB / 365.5 MB, free: 4.828 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001592/0.213, allocations: 0.611 MB / 366.1 MB, free: 4.219 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001775/0.2148, allocations: 0.8002 MB / 366.9 MB, free: 3.344 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00306/0.2178, allocations: 1.244 MB / 368.1 MB, free: 2.023 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.185e-05/0.2179, allocations: 11.94 kB / 368.1 MB, free: 2.012 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003835/0.2217, allocations: 1.402 MB / 369.5 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.849e-05/0.2218, allocations: 8 kB / 369.5 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.628e-05/0.2218, allocations: 8 kB / 369.5 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.606e-05/0.2219, allocations: 8 kB / 369.6 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001458/0.2233, allocations: 203.7 kB / 369.7 MB, free: 388 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.98e-05/0.2234, allocations: 15.92 kB / 369.8 MB, free: 372 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001078/0.2244, allocations: 107.8 kB / 369.9 MB, free: 264 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001067/0.2246, allocations: 27.98 kB / 369.9 MB, free: 236 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.0004408/0.225, allocations: 181.5 kB / 370.1 MB, free: 44 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2757/0.5007, allocations: 150.5 kB / 370.2 MB, free: 26.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002613/0.501, allocations: 62.05 kB / 370.3 MB, free: 26.58 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.642e-05/0.5011, allocations: 8.688 kB / 370.3 MB, free: 26.58 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.248e-05/0.5011, allocations: 1.406 kB / 370.3 MB, free: 26.58 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.3e-05/0.5011, allocations: 5.328 kB / 370.3 MB, free: 26.58 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005976/0.5071, allocations: 2.167 MB / 372.5 MB, free: 25.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-05/0.5071, allocations: 10.62 kB / 372.5 MB, free: 25.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008936/0.508, allocations: 184.7 kB / 372.7 MB, free: 25.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.647e-05/0.5081, allocations: 14.38 kB / 372.7 MB, free: 25.88 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.444e-05/0.5082, allocations: 23.14 kB / 372.7 MB, free: 25.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.729e-05/0.5082, allocations: 20.38 kB / 372.7 MB, free: 25.87 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.609e-05/0.5082, allocations: 16.84 kB / 372.7 MB, free: 25.87 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003546/0.5118, allocations: 1.56 MB / 374.3 MB, free: 24.95 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002465/0.512, allocations: 162.3 kB / 374.4 MB, free: 24.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.467e-05/0.5121, allocations: 30.16 kB / 374.5 MB, free: 24.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006449/0.5128, allocations: 74.38 kB / 374.5 MB, free: 24.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002482/0.513, allocations: 97.52 kB / 374.6 MB, free: 24.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.458e-05/0.5131, allocations: 40.14 kB / 374.7 MB, free: 24.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001626/0.5133, allocations: 140.1 kB / 374.8 MB, free: 24.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5133, allocations: 0 / 374.8 MB, free: 24.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007914/0.5141, allocations: 121.8 kB / 374.9 MB, free: 24.66 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.0001982/0.5143, allocations: 135.7 kB / 375.1 MB, free: 24.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003065/0.5174, allocations: 1.114 MB / 376.2 MB, free: 24.13 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/0.5174, allocations: 3.656 kB / 376.2 MB, free: 24.13 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00109/0.5185, allocations: 340.3 kB / 376.5 MB, free: 24.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001153/0.5196, allocations: 142.7 kB / 376.7 MB, free: 24 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002671/0.5223, allocations: 1.344 MB / 378 MB, free: 22.96 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003908/0.5227, allocations: 0.8214 MB / 378.8 MB, free: 22.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004003/0.5231, allocations: 39.67 kB / 378.9 MB, free: 22.25 MB / 302.1 MB Notification: Performance of SimCode: time 1.362e-06/0.5232, allocations: 0 / 378.9 MB, free: 22.25 MB / 302.1 MB Notification: Performance of Templates: time 0.01529/0.5385, allocations: 7.096 MB / 386 MB, free: 19.83 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/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