Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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=500,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001612/0.001612, allocations: 109.3 kB / 18.78 MB, free: 3.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001812/0.001812, allocations: 207.2 kB / 19.79 MB, free: 2.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.449/1.449, allocations: 230.4 MB / 251.1 MB, free: 8.504 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001983/0.001983, allocations: 67.83 kB / 368.9 MB, free: 6.082 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2759/0.2779, allocations: 53.31 MB / 422.2 MB, free: 7.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003493/0.2813, allocations: 2.168 MB / 424.4 MB, free: 5.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001252/0.2826, allocations: 0.69 MB / 425.1 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001042/0.2827, allocations: 4 kB / 425.1 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002418/0.2829, allocations: 43.64 kB / 425.1 MB, free: 4.918 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001351/0.2831, allocations: 51.56 kB / 425.2 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000367/0.2834, allocations: 131.8 kB / 425.3 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003938/0.2838, allocations: 339.2 kB / 425.6 MB, free: 4.406 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001778/0.284, allocations: 60.31 kB / 425.7 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002766/0.2843, allocations: 147.5 kB / 425.9 MB, free: 4.203 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002489/0.2845, allocations: 155.4 kB / 426 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.661e-05/0.2846, allocations: 28 kB / 426 MB, free: 4.023 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.804e-05/0.2846, allocations: 36 kB / 426.1 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001082/0.2847, allocations: 83.78 kB / 426.1 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001192/0.2849, allocations: 119.4 kB / 426.3 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003433/0.2852, allocations: 286.4 kB / 426.5 MB, free: 3.512 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.2852, allocations: 0 / 426.5 MB, free: 3.512 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.2852, allocations: 0 / 426.5 MB, free: 3.512 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.2852, allocations: 0 / 426.5 MB, free: 3.512 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.001162/0.2864, allocations: 0.588 MB / 427.1 MB, free: 2.875 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.221e-05/0.2864, allocations: 8.031 kB / 427.1 MB, free: 2.867 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.161e-05/0.2865, allocations: 32.8 kB / 427.2 MB, free: 2.836 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003467/0.2868, allocations: 253.6 kB / 427.4 MB, free: 2.551 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002012/0.287, allocations: 134.2 kB / 427.6 MB, free: 2.402 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.234e-05/0.2871, allocations: 27.94 kB / 427.6 MB, free: 2.375 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008457/0.2879, allocations: 367.5 kB / 427.9 MB, free: 2.004 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.016e-05/0.288, allocations: 7.953 kB / 427.9 MB, free: 1.996 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.186e-05/0.288, allocations: 11.94 kB / 428 MB, free: 1.984 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.288, allocations: 12 kB / 428 MB, free: 1.973 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001214/0.2892, allocations: 497.8 kB / 428.5 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001752/0.291, allocations: 0.9997 MB / 429.5 MB, free: 428 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001089/0.2921, allocations: 325.8 kB / 429.8 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004685/0.2925, allocations: 161.2 kB / 429.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.092e-05/0.2926, allocations: 4.234 kB / 429.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.912e-05/0.2926, allocations: 38.78 kB / 430 MB, free: 15.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.533e-06/0.2926, allocations: 4 kB / 430 MB, free: 15.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.02572/0.3183, allocations: 5.797 MB / 435.8 MB, free: 9.988 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.702e-05/0.3184, allocations: 55.84 kB / 435.8 MB, free: 9.922 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002614/0.3186, allocations: 206.3 kB / 436 MB, free: 9.711 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.092e-05/0.3187, allocations: 33.7 kB / 436.1 MB, free: 9.672 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.3188, allocations: 156.9 kB / 436.2 MB, free: 9.516 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001793/0.319, allocations: 186.4 kB / 436.4 MB, free: 9.332 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002113/0.3192, allocations: 90.2 kB / 436.5 MB, free: 9.238 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.3193, allocations: 334.8 kB / 436.8 MB, free: 8.902 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001231/0.3206, allocations: 468.8 kB / 437.3 MB, free: 8.445 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001256/0.3218, allocations: 0.5216 MB / 437.8 MB, free: 7.906 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002159/0.324, allocations: 0.7993 MB / 438.6 MB, free: 7.094 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.324, allocations: 3.984 kB / 438.6 MB, free: 7.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002561/0.3266, allocations: 0.9868 MB / 439.6 MB, free: 6.098 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.3266, allocations: 11.88 kB / 439.6 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.876e-06/0.3266, allocations: 4 kB / 439.6 MB, free: 6.082 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.3266, allocations: 0 / 439.6 MB, free: 6.082 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000952/0.3276, allocations: 167.8 kB / 439.8 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.675e-05/0.3276, allocations: 11.92 kB / 439.8 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000647/0.3282, allocations: 87.88 kB / 439.9 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.363e-05/0.3283, allocations: 20 kB / 439.9 MB, free: 5.801 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: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0002325/0.3285, allocations: 149.8 kB / 440 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.711e-05/0.3286, allocations: 39.73 kB / 440.1 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001135/0.3287, allocations: 47.31 kB / 440.1 MB, free: 5.555 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.3287, allocations: 4 kB / 440.1 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.3287, allocations: 4 kB / 440.1 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.3287, allocations: 3.984 kB / 440.1 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004005/0.3327, allocations: 1.881 MB / 442 MB, free: 3.496 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.118e-05/0.3327, allocations: 9 kB / 442 MB, free: 3.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006182/0.3334, allocations: 147.8 kB / 442.2 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.24e-05/0.3334, allocations: 11.94 kB / 442.2 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.107e-05/0.3334, allocations: 20 kB / 442.2 MB, free: 3.312 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.608e-05/0.3334, allocations: 19.92 kB / 442.2 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.979e-06/0.3334, allocations: 11.94 kB / 442.2 MB, free: 3.281 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002582/0.336, allocations: 1.225 MB / 443.4 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001809/0.3362, allocations: 144.9 kB / 443.6 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.555e-05/0.3363, allocations: 27.92 kB / 443.6 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004769/0.3367, allocations: 71.92 kB / 443.7 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001912/0.3369, allocations: 83.67 kB / 443.8 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.731e-05/0.337, allocations: 24 kB / 443.8 MB, free: 1.562 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001686/0.3371, allocations: 152.3 kB / 443.9 MB, free: 1.414 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3371, allocations: 0 / 443.9 MB, free: 1.414 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000471/0.3376, allocations: 96 kB / 444 MB, free: 1.32 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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.0001803/0.3378, allocations: 123.1 kB / 444.2 MB, free: 1.191 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002082/0.3399, allocations: 0.779 MB / 444.9 MB, free: 420 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.3399, allocations: 4 kB / 444.9 MB, free: 416 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008378/0.3407, allocations: 320.9 kB / 445.2 MB, free: 100 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006024/0.3413, allocations: 52.06 kB / 445.3 MB, free: 48 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002138/0.3435, allocations: 1.028 MB / 446.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004357/0.3439, allocations: 0.7801 MB / 447.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003746/0.3443, allocations: 87.12 kB / 447.2 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001988/0.3445, allocations: 31.44 kB / 447.2 MB, free: 13.95 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3445, allocations: 0 / 447.2 MB, free: 13.95 MB / 366.1 MB Notification: Performance of Templates: time 0.011/0.3555, allocations: 5.958 MB / 453.2 MB, free: 8.02 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches