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.001356/0.001356, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 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.001494/0.001494, allocations: 213.2 kB / 23.73 MB, free: 4.164 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.468/1.468, allocations: 230.5 MB / 257.4 MB, free: 7.812 MB / 206.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.001883/0.001883, allocations: 67.89 kB / 378.2 MB, free: 2.344 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2813, allocations: 53.41 MB / 431.6 MB, free: 6.551 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.00351/0.2848, allocations: 2.082 MB / 433.7 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001233/0.2861, allocations: 0.6471 MB / 434.3 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001203/0.2862, allocations: 7.938 kB / 434.3 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002741/0.2865, allocations: 47.69 kB / 434.4 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00015/0.2866, allocations: 55.56 kB / 434.4 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003548/0.287, allocations: 123.8 kB / 434.6 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003944/0.2874, allocations: 343.1 kB / 434.9 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001626/0.2875, allocations: 51.05 kB / 434.9 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003228/0.2878, allocations: 147.6 kB / 435.1 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002348/0.2881, allocations: 151.4 kB / 435.2 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.468e-05/0.2881, allocations: 32 kB / 435.3 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.345e-05/0.2882, allocations: 28 kB / 435.3 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001115/0.2883, allocations: 87.73 kB / 435.4 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001111/0.2884, allocations: 107.5 kB / 435.5 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003467/0.2888, allocations: 294.6 kB / 435.8 MB, free: 2.363 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2888, allocations: 0 / 435.8 MB, free: 2.363 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2888, allocations: 0 / 435.8 MB, free: 2.363 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.461e-06/0.2888, allocations: 0 / 435.8 MB, free: 2.363 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.001152/0.2899, allocations: 0.5204 MB / 436.3 MB, free: 1.812 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.29, allocations: 11.98 kB / 436.3 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.935e-05/0.29, allocations: 32.8 kB / 436.3 MB, free: 1.77 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004316/0.2905, allocations: 194.1 kB / 436.5 MB, free: 1.559 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003242/0.2908, allocations: 339.8 kB / 436.9 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.533e-05/0.2909, allocations: 27.94 kB / 436.9 MB, free: 1.133 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009409/0.2918, allocations: 370.6 kB / 437.3 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.607e-05/0.2918, allocations: 7.891 kB / 437.3 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.741e-05/0.2919, allocations: 15.98 kB / 437.3 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.2919, allocations: 8 kB / 437.3 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001433/0.2933, allocations: 497.6 kB / 437.8 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001771/0.2951, allocations: 0.8644 MB / 438.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00107/0.2961, allocations: 299 kB / 438.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005568/0.2967, allocations: 165.2 kB / 439.1 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.838e-05/0.2967, allocations: 12 kB / 439.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.831e-05/0.2968, allocations: 38.56 kB / 439.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.653e-06/0.2968, allocations: 0 / 439.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=53): time 0.02794/0.3247, allocations: 5.675 MB / 444.8 MB, free: 9.078 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.873e-05/0.3248, allocations: 71.72 kB / 444.9 MB, free: 8.996 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002992/0.3251, allocations: 206.3 kB / 445.1 MB, free: 8.785 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.524e-05/0.3251, allocations: 33.7 kB / 445.1 MB, free: 8.746 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.3252, allocations: 153 kB / 445.3 MB, free: 8.594 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001768/0.3254, allocations: 186.4 kB / 445.4 MB, free: 8.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002055/0.3256, allocations: 90.34 kB / 445.5 MB, free: 8.316 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.3258, allocations: 342.8 kB / 445.9 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001385/0.3272, allocations: 473 kB / 446.3 MB, free: 7.508 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001431/0.3286, allocations: 0.5264 MB / 446.9 MB, free: 6.973 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002527/0.3311, allocations: 0.81 MB / 447.7 MB, free: 6.148 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3311, allocations: 0 / 447.7 MB, free: 6.148 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00298/0.3341, allocations: 1.001 MB / 448.7 MB, free: 5.141 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.3341, allocations: 8 kB / 448.7 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.697e-06/0.3341, allocations: 0 / 448.7 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.196e-05/0.3342, allocations: 4 kB / 448.7 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/0.3352, allocations: 171.7 kB / 448.8 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.64e-05/0.3352, allocations: 11.98 kB / 448.9 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007197/0.3359, allocations: 83.89 kB / 448.9 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.527e-05/0.336, allocations: 16 kB / 449 MB, free: 4.852 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.0002675/0.3362, allocations: 161.7 kB / 449.1 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.513e-05/0.3363, allocations: 27.81 kB / 449.1 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001363/0.3365, allocations: 51.3 kB / 449.2 MB, free: 4.605 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.189e-05/0.3365, allocations: 15.94 kB / 449.2 MB, free: 4.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.3365, allocations: 0 / 449.2 MB, free: 4.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.3365, allocations: 0 / 449.2 MB, free: 4.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004391/0.3409, allocations: 1.695 MB / 450.9 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.071e-05/0.3409, allocations: 8 kB / 450.9 MB, free: 2.742 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006583/0.3415, allocations: 147.9 kB / 451.1 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.27e-05/0.3416, allocations: 8 kB / 451.1 MB, free: 2.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.49e-05/0.3416, allocations: 24 kB / 451.1 MB, free: 2.566 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.869e-05/0.3416, allocations: 15.92 kB / 451.1 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.676e-05/0.3416, allocations: 19.88 kB / 451.1 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003118/0.3448, allocations: 1.248 MB / 452.4 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001921/0.3449, allocations: 63.84 kB / 452.4 MB, free: 1.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.004e-05/0.345, allocations: 28 kB / 452.5 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005421/0.3456, allocations: 75.84 kB / 452.5 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002201/0.3458, allocations: 87.7 kB / 452.6 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.034e-05/0.3458, allocations: 24 kB / 452.6 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001849/0.346, allocations: 152.3 kB / 452.8 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.346, allocations: 4 kB / 452.8 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005014/0.3465, allocations: 96 kB / 452.9 MB, free: 0.6328 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.0001795/0.3467, allocations: 134.9 kB / 453 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002472/0.3492, allocations: 0.7941 MB / 453.8 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.3492, allocations: 4 kB / 453.8 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001069/0.3502, allocations: 321.7 kB / 454.1 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006344/0.3509, allocations: 62.78 kB / 454.2 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0023/0.3532, allocations: 1.025 MB / 455.2 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001917/0.3534, allocations: 172.2 kB / 455.4 MB, free: 13.97 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004126/0.3538, allocations: 82.88 kB / 455.5 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002186/0.354, allocations: 31.44 kB / 455.5 MB, free: 13.86 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.354, allocations: 0 / 455.5 MB, free: 13.86 MB / 366.1 MB Notification: Performance of Templates: time 0.01185/0.3658, allocations: 6.358 MB / 461.9 MB, free: 7.574 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 -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/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_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.758434789255261]