Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001716/0.001716, allocations: 71.59 kB / 21.24 MB, free: 0.5469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001772/0.001772, allocations: 159.5 kB / 24.5 MB, free: 3.723 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.414/1.414, allocations: 177.2 MB / 204.9 MB, free: 9.027 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001544, allocations: 56.22 kB / 325.5 MB, free: 272 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1138, allocations: 53.34 MB / 378.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.006269/0.1201, allocations: 2.252 MB / 381.1 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002516/0.1226, allocations: 0.7716 MB / 381.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001718/0.1227, allocations: 4 kB / 381.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000375/0.1231, allocations: 55.56 kB / 382 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003261/0.1234, allocations: 59.56 kB / 382 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008109/0.1243, allocations: 159.6 kB / 382.2 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007107/0.125, allocations: 379.6 kB / 382.5 MB, free: 12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002655/0.1252, allocations: 71.78 kB / 382.6 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004329/0.1257, allocations: 171.5 kB / 382.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004062/0.1261, allocations: 163.3 kB / 382.9 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.259e-05/0.1262, allocations: 36 kB / 383 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.978e-05/0.1262, allocations: 35.94 kB / 383 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002009/0.1264, allocations: 95.73 kB / 383.1 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002118/0.1267, allocations: 123.4 kB / 383.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000653/0.1273, allocations: 326.7 kB / 383.5 MB, free: 10.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.1273, allocations: 4 kB / 383.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1273, allocations: 0 / 383.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.1273, allocations: 0 / 383.6 MB, free: 10.98 MB / 350.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.001972/0.1293, allocations: 0.5483 MB / 384.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.1293, allocations: 12.03 kB / 384.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001258/0.1295, allocations: 36.75 kB / 384.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006376/0.1301, allocations: 210.5 kB / 384.4 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005334/0.1306, allocations: 351.9 kB / 384.7 MB, free: 9.719 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001103/0.1307, allocations: 40.33 kB / 384.7 MB, free: 9.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002153/0.1329, allocations: 0.5495 MB / 385.3 MB, free: 9.102 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.956e-05/0.1329, allocations: 4 kB / 385.3 MB, free: 9.098 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.249e-05/0.133, allocations: 8 kB / 385.3 MB, free: 9.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.582e-05/0.133, allocations: 8 kB / 385.3 MB, free: 9.082 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002754/0.1358, allocations: 0.519 MB / 385.8 MB, free: 8.562 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002605/0.1384, allocations: 0.8445 MB / 386.7 MB, free: 7.668 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002828/0.1412, allocations: 470.6 kB / 387.1 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00133/0.1425, allocations: 239.3 kB / 387.4 MB, free: 6.926 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.41e-05/0.1426, allocations: 8 kB / 387.4 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.433e-05/0.1426, allocations: 42.55 kB / 387.4 MB, free: 6.867 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 3.607e-06/0.1426, allocations: 0 / 387.4 MB, free: 6.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.05657/0.1992, allocations: 5.734 MB / 393.1 MB, free: 1.117 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001325/0.1993, allocations: 153.1 kB / 393.3 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002674/0.1996, allocations: 207.1 kB / 393.5 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.282e-05/0.1997, allocations: 37.7 kB / 393.5 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.1998, allocations: 142.1 kB / 393.7 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002116/0.2, allocations: 206.3 kB / 393.9 MB, free: 344 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002845/0.2003, allocations: 110.7 kB / 394 MB, free: 228 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002004/0.2005, allocations: 342.8 kB / 394.3 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001763/0.2022, allocations: 0.6343 MB / 395 MB, free: 15.24 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001931/0.2042, allocations: 0.7965 MB / 395.7 MB, free: 14.37 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003392/0.2076, allocations: 1.26 MB / 397 MB, free: 13.03 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.2076, allocations: 4 kB / 397 MB, free: 13.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003978/0.2116, allocations: 1.407 MB / 398.4 MB, free: 11.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.467e-05/0.2116, allocations: 10.81 kB / 398.4 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-05/0.2116, allocations: 7.984 kB / 398.4 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.106e-05/0.2116, allocations: 12 kB / 398.5 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001413/0.213, allocations: 215.6 kB / 398.7 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.33e-05/0.2131, allocations: 15.97 kB / 398.7 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001029/0.2141, allocations: 103.8 kB / 398.8 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.583e-05/0.2142, allocations: 28 kB / 398.8 MB, free: 11.23 MB / 366.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: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,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 (84): * Single equations (assignments): 84 * 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.0003357/0.2145, allocations: 182.2 kB / 399 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003524/0.2149, allocations: 149.4 kB / 399.1 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001653/0.215, allocations: 63.3 kB / 399.2 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/0.215, allocations: 12 kB / 399.2 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/0.2151, allocations: 7.938 kB / 399.2 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.2151, allocations: 3.984 kB / 399.2 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005268/0.2203, allocations: 1.906 MB / 401.1 MB, free: 8.738 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-05/0.2204, allocations: 8 kB / 401.1 MB, free: 8.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008224/0.2212, allocations: 188.3 kB / 401.3 MB, free: 8.547 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-05/0.2212, allocations: 20 kB / 401.3 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.29e-05/0.2213, allocations: 31.94 kB / 401.4 MB, free: 8.496 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.162e-05/0.2213, allocations: 19.92 kB / 401.4 MB, free: 8.477 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.105e-05/0.2213, allocations: 15.94 kB / 401.4 MB, free: 8.461 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003679/0.225, allocations: 1.574 MB / 403 MB, free: 6.734 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002191/0.2252, allocations: 83.69 kB / 403.1 MB, free: 6.652 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.992e-05/0.2253, allocations: 39.98 kB / 403.1 MB, free: 6.613 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006723/0.226, allocations: 75.92 kB / 403.2 MB, free: 6.539 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002559/0.2262, allocations: 95.64 kB / 403.3 MB, free: 6.445 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.203e-05/0.2263, allocations: 35.98 kB / 403.3 MB, free: 6.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001638/0.2264, allocations: 148.3 kB / 403.4 MB, free: 6.266 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2264, allocations: 0 / 403.4 MB, free: 6.266 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007071/0.2271, allocations: 124 kB / 403.6 MB, free: 6.145 MB / 366.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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.0001787/0.2273, allocations: 138.9 kB / 403.7 MB, free: 5.996 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00316/0.2305, allocations: 1.046 MB / 404.7 MB, free: 4.945 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.085e-06/0.2305, allocations: 3.938 kB / 404.7 MB, free: 4.941 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001186/0.2317, allocations: 342.4 kB / 405.1 MB, free: 4.609 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009641/0.2326, allocations: 123.9 kB / 405.2 MB, free: 4.488 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002689/0.2353, allocations: 1.173 MB / 406.4 MB, free: 3.148 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002704/0.2356, allocations: 207.3 kB / 406.6 MB, free: 2.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005089/0.2361, allocations: 99.3 kB / 406.7 MB, free: 2.828 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002997/0.2364, allocations: 36.5 kB / 406.7 MB, free: 2.793 MB / 366.1 MB Notification: Performance of SimCode: time 1.362e-06/0.2364, allocations: 4 kB / 406.7 MB, free: 2.789 MB / 366.1 MB Notification: Performance of Templates: time 0.01596/0.2524, allocations: 8.873 MB / 415.6 MB, free: 9.992 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.788514995016158]