Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.001478/0.001478, allocations: 108.6 kB / 21.19 MB, free: 0.7578 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.0013/0.0013, allocations: 193.1 kB / 24.47 MB, free: 4.152 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.434/1.434, allocations: 225.6 MB / 253.3 MB, free: 13 MB / 206.1 MB " [Timeout remaining time 178] 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.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 55.91 kB / 371.7 MB, free: 9.371 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.2615, allocations: 52.17 MB / 423.9 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004176/0.2656, allocations: 2.399 MB / 426.3 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001599/0.2672, allocations: 0.8105 MB / 427.1 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001669/0.2674, allocations: 11.88 kB / 427.1 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003071/0.2677, allocations: 51.58 kB / 427.1 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000214/0.2679, allocations: 63.55 kB / 427.2 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005503/0.2685, allocations: 175.5 kB / 427.4 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004679/0.2689, allocations: 387.5 kB / 427.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001973/0.2691, allocations: 76.28 kB / 427.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002569/0.2694, allocations: 167.5 kB / 428 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002881/0.2697, allocations: 187.2 kB / 428.2 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.693e-05/0.2697, allocations: 32 kB / 428.2 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.373e-05/0.2698, allocations: 36 kB / 428.2 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001222/0.2699, allocations: 95.73 kB / 428.3 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000164/0.2701, allocations: 147.2 kB / 428.5 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004429/0.2705, allocations: 339.8 kB / 428.8 MB, free: 9.766 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.2705, allocations: 0 / 428.8 MB, free: 9.766 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.2705, allocations: 0 / 428.8 MB, free: 9.766 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.2705, allocations: 3.938 kB / 428.8 MB, free: 9.762 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001275/0.2718, allocations: 0.5522 MB / 429.4 MB, free: 9.18 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.2719, allocations: 12.03 kB / 429.4 MB, free: 9.168 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.264e-05/0.272, allocations: 36.75 kB / 429.4 MB, free: 9.133 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004547/0.2724, allocations: 222.4 kB / 429.6 MB, free: 8.891 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003459/0.2728, allocations: 351.8 kB / 430 MB, free: 8.477 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.69e-05/0.2728, allocations: 32.38 kB / 430 MB, free: 8.445 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001223/0.274, allocations: 0.5623 MB / 430.6 MB, free: 7.859 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.979e-05/0.2741, allocations: 0 / 430.6 MB, free: 7.859 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.784e-05/0.2741, allocations: 12 kB / 430.6 MB, free: 7.848 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.2741, allocations: 8 kB / 430.6 MB, free: 7.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001317/0.2754, allocations: 0.5112 MB / 431.1 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001623/0.2771, allocations: 0.9336 MB / 432 MB, free: 6.328 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001602/0.2787, allocations: 486.5 kB / 432.5 MB, free: 5.816 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006082/0.2793, allocations: 239.5 kB / 432.7 MB, free: 5.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.63e-05/0.2793, allocations: 7.984 kB / 432.7 MB, free: 5.562 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.235e-05/0.2793, allocations: 46.56 kB / 432.8 MB, free: 5.508 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.334e-06/0.2794, allocations: 0 / 432.8 MB, free: 5.508 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03773/0.3171, allocations: 5.741 MB / 438.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001465/0.3172, allocations: 145 kB / 438.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003462/0.3176, allocations: 200.3 kB / 438.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001159/0.3177, allocations: 33.7 kB / 438.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001715/0.3179, allocations: 149.7 kB / 439 MB, free: 15.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002495/0.3181, allocations: 198.3 kB / 439.2 MB, free: 14.99 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002894/0.3184, allocations: 110.7 kB / 439.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001828/0.3186, allocations: 342.8 kB / 439.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001589/0.3202, allocations: 0.6148 MB / 440.3 MB, free: 13.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001736/0.3219, allocations: 0.7925 MB / 441.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002974/0.3249, allocations: 1.263 MB / 442.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.3249, allocations: 4 kB / 442.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003527/0.3284, allocations: 1.394 MB / 443.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.207e-05/0.3284, allocations: 11.98 kB / 443.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.3285, allocations: 4 kB / 443.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.137e-05/0.3285, allocations: 12.38 kB / 443.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001357/0.3298, allocations: 207.6 kB / 444 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.769e-05/0.3299, allocations: 8 kB / 444 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009507/0.3308, allocations: 107.8 kB / 444.1 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.568e-05/0.3309, allocations: 31.94 kB / 444.1 MB, free: 9.926 MB / 350.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.0003274/0.3312, allocations: 181.6 kB / 444.3 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003185/0.3315, allocations: 157.6 kB / 444.4 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001694/0.3317, allocations: 59.31 kB / 444.5 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.528e-06/0.3317, allocations: 8 kB / 444.5 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.3317, allocations: 4 kB / 444.5 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.3317, allocations: 3.984 kB / 444.5 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00489/0.3366, allocations: 2.143 MB / 446.7 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.336e-05/0.3366, allocations: 8 kB / 446.7 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007574/0.3374, allocations: 183.7 kB / 446.9 MB, free: 7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.676e-05/0.3374, allocations: 16.53 kB / 446.9 MB, free: 6.984 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.335e-05/0.3375, allocations: 28 kB / 446.9 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.738e-05/0.3375, allocations: 20 kB / 446.9 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.475e-05/0.3375, allocations: 20.16 kB / 446.9 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003238/0.3407, allocations: 1.565 MB / 448.5 MB, free: 5.203 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002359/0.341, allocations: 91.62 kB / 448.6 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.779e-05/0.3411, allocations: 24 kB / 448.6 MB, free: 5.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005789/0.3416, allocations: 75.91 kB / 448.7 MB, free: 5.016 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000196/0.3418, allocations: 95.7 kB / 448.8 MB, free: 4.922 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.067e-05/0.3419, allocations: 32 kB / 448.8 MB, free: 4.891 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001473/0.342, allocations: 141.2 kB / 448.9 MB, free: 4.754 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.342, allocations: 4 kB / 449 MB, free: 4.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006682/0.3427, allocations: 124 kB / 449.1 MB, free: 4.629 MB / 350.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.0001862/0.3429, allocations: 138.9 kB / 449.2 MB, free: 4.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002773/0.3457, allocations: 1.022 MB / 450.2 MB, free: 3.457 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.3457, allocations: 0 / 450.2 MB, free: 3.457 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009869/0.3466, allocations: 339.2 kB / 450.6 MB, free: 3.129 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008987/0.3475, allocations: 135.8 kB / 450.7 MB, free: 2.996 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00249/0.35, allocations: 1.215 MB / 451.9 MB, free: 1.609 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004594/0.3505, allocations: 0.8128 MB / 452.7 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000333/0.3508, allocations: 43.42 kB / 452.8 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3508, allocations: 0 / 452.8 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of Templates: time 0.01141/0.3622, allocations: 7.216 MB / 460 MB, free: 9.535 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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: 7.680622071959078]