Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,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.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,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.SubClocked") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001281/0.001281, allocations: 108.7 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.001324/0.001324, allocations: 207.9 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.546/1.546, allocations: 230.4 MB / 251.1 MB, free: 8.488 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.001954/0.001954, allocations: 71.83 kB / 368.9 MB, free: 6.066 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.2637, allocations: 53.31 MB / 422.2 MB, free: 7.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004225/0.2679, allocations: 2.378 MB / 424.6 MB, free: 5.449 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00202/0.2699, allocations: 0.8378 MB / 425.5 MB, free: 4.605 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002895/0.2702, allocations: 4 kB / 425.5 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004118/0.2706, allocations: 55.56 kB / 425.5 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003566/0.271, allocations: 59.5 kB / 425.6 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008118/0.2718, allocations: 182.7 kB / 425.8 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006006/0.2724, allocations: 379.6 kB / 426.1 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002316/0.2726, allocations: 71.84 kB / 426.2 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004465/0.273, allocations: 175.4 kB / 426.4 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003425/0.2734, allocations: 179.2 kB / 426.5 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.721e-05/0.2735, allocations: 36 kB / 426.6 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.287e-05/0.2735, allocations: 36 kB / 426.6 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001377/0.2737, allocations: 99.72 kB / 426.7 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002092/0.2739, allocations: 151.2 kB / 426.9 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005149/0.2744, allocations: 334.2 kB / 427.2 MB, free: 2.879 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.2744, allocations: 0 / 427.2 MB, free: 2.879 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2744, allocations: 0 / 427.2 MB, free: 2.879 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.278e-05/0.2744, allocations: 0 / 427.2 MB, free: 2.879 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.001454/0.2759, allocations: 0.6265 MB / 427.8 MB, free: 2.207 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.2759, allocations: 12.03 kB / 427.8 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001159/0.276, allocations: 40.7 kB / 427.9 MB, free: 2.156 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005183/0.2766, allocations: 280.4 kB / 428.1 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000219/0.2768, allocations: 138.3 kB / 428.3 MB, free: 1.691 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.06e-05/0.2768, allocations: 32.38 kB / 428.3 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001229/0.2781, allocations: 0.5699 MB / 428.9 MB, free: 1.066 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.2781, allocations: 3.938 kB / 428.9 MB, free: 1.062 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.836e-05/0.2781, allocations: 12 kB / 428.9 MB, free: 1.051 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.2781, allocations: 12 kB / 428.9 MB, free: 1.039 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001262/0.2794, allocations: 0.5074 MB / 429.4 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001632/0.281, allocations: 1.014 MB / 430.4 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001539/0.2826, allocations: 486.5 kB / 430.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005907/0.2832, allocations: 243.4 kB / 431.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.527e-05/0.2832, allocations: 12.08 kB / 431.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.084e-05/0.2833, allocations: 38.56 kB / 431.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.703e-06/0.2833, allocations: 0 / 431.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03766/0.3209, allocations: 5.722 MB / 436.9 MB, free: 8.887 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001246/0.321, allocations: 153 kB / 437.1 MB, free: 8.707 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002316/0.3213, allocations: 200.2 kB / 437.3 MB, free: 8.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.712e-05/0.3214, allocations: 41.7 kB / 437.3 MB, free: 8.453 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.973e-05/0.3215, allocations: 137.8 kB / 437.4 MB, free: 8.312 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002185/0.3217, allocations: 202.3 kB / 437.6 MB, free: 8.113 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002926/0.322, allocations: 110.6 kB / 437.7 MB, free: 8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.3221, allocations: 342.8 kB / 438.1 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001517/0.3236, allocations: 0.6149 MB / 438.7 MB, free: 7.043 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001653/0.3253, allocations: 0.8002 MB / 439.5 MB, free: 6.164 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002902/0.3282, allocations: 1.251 MB / 440.7 MB, free: 4.836 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.3282, allocations: 4 kB / 440.7 MB, free: 4.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003376/0.3316, allocations: 1.386 MB / 442.1 MB, free: 3.438 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/0.3316, allocations: 11.98 kB / 442.1 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/0.3316, allocations: 8.312 kB / 442.1 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.476e-05/0.3316, allocations: 12 kB / 442.2 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001336/0.333, allocations: 207.6 kB / 442.4 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.793e-05/0.333, allocations: 12 kB / 442.4 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009223/0.3339, allocations: 108.1 kB / 442.5 MB, free: 3.086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.231e-05/0.334, allocations: 31.94 kB / 442.5 MB, free: 3.055 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.0003402/0.3343, allocations: 185.6 kB / 442.7 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003217/0.3347, allocations: 157.3 kB / 442.8 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001512/0.3348, allocations: 55.31 kB / 442.9 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/0.3348, allocations: 8 kB / 442.9 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/0.3348, allocations: 4 kB / 442.9 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.3348, allocations: 3.984 kB / 442.9 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004893/0.3397, allocations: 2.18 MB / 445.1 MB, free: 276 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.137e-05/0.3398, allocations: 12.23 kB / 445.1 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007598/0.3405, allocations: 183.7 kB / 445.3 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.71e-05/0.3405, allocations: 12 kB / 445.3 MB, free: 68 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.675e-05/0.3406, allocations: 24 kB / 445.3 MB, free: 44 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.417e-05/0.3406, allocations: 15.94 kB / 445.3 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.275e-05/0.3406, allocations: 19.92 kB / 445.4 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003175/0.3438, allocations: 1.565 MB / 446.9 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002819/0.3441, allocations: 160.8 kB / 447.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.833e-05/0.3442, allocations: 27.98 kB / 447.1 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006358/0.3448, allocations: 83.98 kB / 447.2 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002091/0.345, allocations: 95.66 kB / 447.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.954e-05/0.3451, allocations: 28 kB / 447.3 MB, free: 13.88 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001609/0.3452, allocations: 140.1 kB / 447.4 MB, free: 13.74 MB / 366.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3452, allocations: 0 / 447.4 MB, free: 13.74 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007141/0.3459, allocations: 120 kB / 447.6 MB, free: 13.62 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: 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.0002115/0.3462, allocations: 146.9 kB / 447.7 MB, free: 13.47 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002742/0.3489, allocations: 1.023 MB / 448.7 MB, free: 12.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.646e-06/0.3489, allocations: 4 kB / 448.7 MB, free: 12.44 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009913/0.3499, allocations: 334.1 kB / 449.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009425/0.3508, allocations: 128.5 kB / 449.2 MB, free: 11.99 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002575/0.3534, allocations: 1.18 MB / 450.4 MB, free: 10.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005057/0.3539, allocations: 0.8168 MB / 451.2 MB, free: 9.812 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004821/0.3544, allocations: 95.31 kB / 451.3 MB, free: 9.719 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000275/0.3547, allocations: 39.44 kB / 451.3 MB, free: 9.684 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3547, allocations: 0 / 451.3 MB, free: 9.684 MB / 366.1 MB Notification: Performance of Templates: time 0.01569/0.3704, allocations: 8.591 MB / 459.9 MB, free: 1.102 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches