Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001334/0.001334, allocations: 75.75 kB / 21.25 MB, free: 396 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001395/0.001395, allocations: 159.7 kB / 24.49 MB, free: 3.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 177.1 MB / 204.7 MB, free: 8.953 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001879/0.001879, allocations: 61.53 kB / 325.5 MB, free: 228 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.107, allocations: 53.39 MB / 378.9 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003844/0.1109, allocations: 2.08 MB / 381 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001274/0.1121, allocations: 0.6549 MB / 381.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001068/0.1122, allocations: 3.938 kB / 381.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002496/0.1125, allocations: 43.7 kB / 381.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001463/0.1126, allocations: 59.5 kB / 381.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003428/0.113, allocations: 127.8 kB / 381.9 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004286/0.1134, allocations: 339.2 kB / 382.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001402/0.1135, allocations: 55.11 kB / 382.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002688/0.1138, allocations: 143.6 kB / 382.4 MB, free: 12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000233/0.114, allocations: 147.4 kB / 382.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.559e-05/0.1141, allocations: 32 kB / 382.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.551e-05/0.1142, allocations: 32 kB / 382.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001174/0.1143, allocations: 87.78 kB / 382.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001183/0.1144, allocations: 107.4 kB / 382.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003457/0.1147, allocations: 294.9 kB / 383.1 MB, free: 11.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1147, allocations: 0 / 383.1 MB, free: 11.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1147, allocations: 0 / 383.1 MB, free: 11.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.63e-06/0.1147, allocations: 0 / 383.1 MB, free: 11.31 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001172/0.1159, allocations: 0.5166 MB / 383.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.116, allocations: 11.98 kB / 383.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.73e-05/0.116, allocations: 32.8 kB / 383.6 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003799/0.1164, allocations: 194.6 kB / 383.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000331/0.1167, allocations: 347.8 kB / 384.2 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.475e-05/0.1168, allocations: 23.94 kB / 384.2 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000899/0.1177, allocations: 370.6 kB / 384.5 MB, free: 9.699 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.959e-05/0.1177, allocations: 7.953 kB / 384.5 MB, free: 9.691 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.152e-05/0.1177, allocations: 8 kB / 384.6 MB, free: 9.684 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.1177, allocations: 8 kB / 384.6 MB, free: 9.676 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001468/0.1192, allocations: 0.4976 MB / 385.1 MB, free: 9.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00171/0.1209, allocations: 0.8451 MB / 385.9 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001051/0.122, allocations: 310.3 kB / 386.2 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005824/0.1226, allocations: 164.7 kB / 386.4 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.904e-05/0.1226, allocations: 4 kB / 386.4 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.658e-05/0.1226, allocations: 38.56 kB / 386.4 MB, free: 7.766 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.713e-06/0.1226, allocations: 0 / 386.4 MB, free: 7.766 MB / 350.1 MB Notification: Performance of matching and sorting (n=53): time 0.02779/0.1504, allocations: 5.681 MB / 392.1 MB, free: 2.027 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.541e-05/0.1505, allocations: 63.84 kB / 392.2 MB, free: 1.953 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002829/0.1507, allocations: 210.3 kB / 392.4 MB, free: 1.738 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.435e-05/0.1508, allocations: 33.7 kB / 392.4 MB, free: 1.699 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.1509, allocations: 149 kB / 392.5 MB, free: 1.551 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001661/0.1511, allocations: 190.4 kB / 392.7 MB, free: 1.363 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000202/0.1513, allocations: 90.34 kB / 392.8 MB, free: 1.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.1514, allocations: 342.8 kB / 393.1 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001452/0.1529, allocations: 473 kB / 393.6 MB, free: 472 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001423/0.1543, allocations: 0.5264 MB / 394.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002579/0.1569, allocations: 0.8064 MB / 394.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.1569, allocations: 4 kB / 394.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.003042/0.1599, allocations: 1.001 MB / 395.9 MB, free: 14.08 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.16, allocations: 4 kB / 396 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.086e-06/0.16, allocations: 0 / 396 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.236e-05/0.16, allocations: 4 kB / 396 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009755/0.161, allocations: 171.7 kB / 396.1 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.831e-05/0.161, allocations: 11.94 kB / 396.1 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007809/0.1618, allocations: 87.92 kB / 396.2 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.665e-05/0.1618, allocations: 16 kB / 396.2 MB, free: 13.79 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0002275/0.1621, allocations: 161.7 kB / 396.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.331e-05/0.1621, allocations: 31.75 kB / 396.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000111/0.1623, allocations: 55.3 kB / 396.5 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.645e-06/0.1623, allocations: 7.938 kB / 396.5 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.1623, allocations: 0 / 396.5 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.263e-06/0.1623, allocations: 7.984 kB / 396.5 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004245/0.1665, allocations: 1.694 MB / 398.2 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-05/0.1665, allocations: 8 kB / 398.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007513/0.1673, allocations: 148.7 kB / 398.3 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.517e-05/0.1673, allocations: 12 kB / 398.4 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.538e-05/0.1673, allocations: 23.98 kB / 398.4 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.547e-05/0.1674, allocations: 15.94 kB / 398.4 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.081e-05/0.1674, allocations: 15.88 kB / 398.4 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003067/0.1704, allocations: 1.24 MB / 399.6 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001968/0.1706, allocations: 75.84 kB / 399.7 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.996e-05/0.1707, allocations: 20 kB / 399.7 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006116/0.1713, allocations: 75.84 kB / 399.8 MB, free: 9.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001952/0.1715, allocations: 87.7 kB / 399.9 MB, free: 9.844 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.212e-05/0.1715, allocations: 24 kB / 399.9 MB, free: 9.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001857/0.1717, allocations: 152.3 kB / 400.1 MB, free: 9.672 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1717, allocations: 0 / 400.1 MB, free: 9.672 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004945/0.1722, allocations: 99.98 kB / 400.2 MB, free: 9.574 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.0002098/0.1724, allocations: 131 kB / 400.3 MB, free: 9.438 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002422/0.1749, allocations: 0.7906 MB / 401.1 MB, free: 8.645 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.1749, allocations: 4.188 kB / 401.1 MB, free: 8.641 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009854/0.1758, allocations: 329 kB / 401.4 MB, free: 8.324 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005872/0.1764, allocations: 59.97 kB / 401.5 MB, free: 8.266 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002247/0.1787, allocations: 1.025 MB / 402.5 MB, free: 7.102 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001932/0.1789, allocations: 172.2 kB / 402.7 MB, free: 6.914 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003697/0.1792, allocations: 78.88 kB / 402.7 MB, free: 6.84 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002015/0.1794, allocations: 36.48 kB / 402.8 MB, free: 6.805 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1794, allocations: 3.938 kB / 402.8 MB, free: 6.801 MB / 366.1 MB Notification: Performance of Templates: time 0.0108/0.1902, allocations: 6.123 MB / 408.9 MB, free: 0.7539 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.542322078021243]