Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001512/0.001512, allocations: 76.44 kB / 21.24 MB, free: 0.5391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001894/0.001894, allocations: 154.4 kB / 24.49 MB, free: 3.727 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 173.4 MB / 201.1 MB, free: 12.7 MB / 190.1 MB " [Timeout remaining time 179] 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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001917/0.001917, allocations: 46.05 kB / 319.4 MB, free: 3.293 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09756/0.09948, allocations: 52.16 MB / 371.6 MB, free: 7.363 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003736/0.1032, allocations: 2.071 MB / 373.6 MB, free: 5.277 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001302/0.1045, allocations: 0.6121 MB / 374.2 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001735/0.1047, allocations: 4 kB / 374.2 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002896/0.105, allocations: 55.62 kB / 374.3 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001991/0.1052, allocations: 47.62 kB / 374.3 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004314/0.1056, allocations: 123.8 kB / 374.5 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004608/0.1061, allocations: 343.2 kB / 374.8 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001614/0.1062, allocations: 51.31 kB / 374.8 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002698/0.1065, allocations: 147.5 kB / 375 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002654/0.1068, allocations: 147.4 kB / 375.1 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.743e-05/0.1068, allocations: 32 kB / 375.2 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.423e-05/0.1069, allocations: 28 kB / 375.2 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001205/0.107, allocations: 91.73 kB / 375.3 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001321/0.1071, allocations: 107.5 kB / 375.4 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003812/0.1075, allocations: 290.8 kB / 375.7 MB, free: 3.219 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1075, allocations: 3.984 kB / 375.7 MB, free: 3.215 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1075, allocations: 0 / 375.7 MB, free: 3.215 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.1075, allocations: 0 / 375.7 MB, free: 3.215 MB / 334.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.001212/0.1087, allocations: 0.5051 MB / 376.2 MB, free: 2.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.1088, allocations: 12.03 kB / 376.2 MB, free: 2.668 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.519e-05/0.1089, allocations: 36.75 kB / 376.2 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003846/0.1093, allocations: 194.6 kB / 376.4 MB, free: 2.418 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003433/0.1096, allocations: 347.7 kB / 376.8 MB, free: 2.012 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.58e-05/0.1097, allocations: 27.94 kB / 376.8 MB, free: 1.984 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009471/0.1106, allocations: 366.6 kB / 377.1 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.829e-05/0.1106, allocations: 0 / 377.1 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.009e-05/0.1107, allocations: 12 kB / 377.2 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.69e-05/0.1107, allocations: 11.98 kB / 377.2 MB, free: 1.59 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001521/0.1122, allocations: 0.4898 MB / 377.7 MB, free: 1.102 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001788/0.114, allocations: 0.8646 MB / 378.5 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001133/0.1151, allocations: 314.1 kB / 378.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005711/0.1157, allocations: 168.7 kB / 379 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.266e-05/0.1157, allocations: 4 kB / 379 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.99e-05/0.1157, allocations: 34.56 kB / 379 MB, free: 15.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.482e-06/0.1157, allocations: 0 / 379 MB, free: 15.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=53): time 0.02841/0.1442, allocations: 5.672 MB / 384.7 MB, free: 9.934 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.24e-05/0.1442, allocations: 59.84 kB / 384.8 MB, free: 9.863 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003249/0.1445, allocations: 214.3 kB / 385 MB, free: 9.645 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.866e-05/0.1446, allocations: 33.7 kB / 385 MB, free: 9.605 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001194/0.1447, allocations: 153 kB / 385.2 MB, free: 9.453 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001857/0.1449, allocations: 186.4 kB / 385.3 MB, free: 9.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002353/0.1451, allocations: 94.23 kB / 385.4 MB, free: 9.172 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.1453, allocations: 338.8 kB / 385.8 MB, free: 8.832 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001446/0.1468, allocations: 481 kB / 386.2 MB, free: 8.359 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001495/0.1483, allocations: 0.5224 MB / 386.8 MB, free: 7.824 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002611/0.1509, allocations: 0.8142 MB / 387.6 MB, free: 6.992 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1509, allocations: 4 kB / 387.6 MB, free: 6.988 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.003047/0.1539, allocations: 0.9931 MB / 388.6 MB, free: 5.992 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.1539, allocations: 7.938 kB / 388.6 MB, free: 5.984 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/0.1539, allocations: 4 kB / 388.6 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.187e-05/0.154, allocations: 0 / 388.6 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009892/0.155, allocations: 171.8 kB / 388.7 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.422e-05/0.155, allocations: 4 kB / 388.7 MB, free: 5.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007359/0.1557, allocations: 87.88 kB / 388.8 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.545e-05/0.1558, allocations: 19.98 kB / 388.9 MB, free: 5.703 MB / 350.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.0002318/0.156, allocations: 161.7 kB / 389 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.062e-05/0.1561, allocations: 27.86 kB / 389 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001064/0.1562, allocations: 51.31 kB / 389.1 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/0.1562, allocations: 11.88 kB / 389.1 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.1562, allocations: 0 / 389.1 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.1562, allocations: 3.984 kB / 389.1 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00432/0.1605, allocations: 1.691 MB / 390.8 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.582e-05/0.1606, allocations: 20.14 kB / 390.8 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006677/0.1612, allocations: 143.8 kB / 391 MB, free: 3.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.448e-05/0.1612, allocations: 12 kB / 391 MB, free: 3.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.008e-05/0.1613, allocations: 20 kB / 391 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.396e-05/0.1613, allocations: 19.92 kB / 391 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.107e-06/0.1613, allocations: 11.94 kB / 391 MB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003013/0.1643, allocations: 1.244 MB / 392.3 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001769/0.1645, allocations: 71.81 kB / 392.3 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.302e-05/0.1646, allocations: 19.98 kB / 392.3 MB, free: 1.914 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005674/0.1651, allocations: 71.86 kB / 392.4 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001874/0.1653, allocations: 87.77 kB / 392.5 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.327e-05/0.1654, allocations: 28 kB / 392.5 MB, free: 1.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001779/0.1655, allocations: 152.8 kB / 392.7 MB, free: 1.582 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1655, allocations: 0 / 392.7 MB, free: 1.582 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004977/0.166, allocations: 103.9 kB / 392.8 MB, free: 1.48 MB / 350.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.0001573/0.1662, allocations: 126.9 kB / 392.9 MB, free: 1.348 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00247/0.1687, allocations: 0.7985 MB / 393.7 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.1687, allocations: 0 / 393.7 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.1697, allocations: 325.7 kB / 394 MB, free: 236 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006148/0.1703, allocations: 62.62 kB / 394.1 MB, free: 176 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002299/0.1726, allocations: 1.034 MB / 395.1 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002041/0.1728, allocations: 172.2 kB / 395.3 MB, free: 14.81 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003722/0.1732, allocations: 82.88 kB / 395.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002051/0.1734, allocations: 36.5 kB / 395.4 MB, free: 14.7 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1734, allocations: 0 / 395.4 MB, free: 14.7 MB / 366.1 MB Notification: Performance of Templates: time 0.01152/0.1849, allocations: 6.103 MB / 401.5 MB, free: 8.672 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.413054271019064]