Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001214/0.001214, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001319/0.001319, allocations: 214.9 kB / 24.52 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.366/1.366, allocations: 230.6 MB / 258.3 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 51.92 kB / 378.5 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2431/0.2445, allocations: 53.35 MB / 431.8 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003492/0.248, allocations: 2.084 MB / 433.9 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001164/0.2492, allocations: 0.6549 MB / 434.6 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001079/0.2493, allocations: 4 kB / 434.6 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002593/0.2495, allocations: 43.64 kB / 434.6 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001432/0.2497, allocations: 47.62 kB / 434.7 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003698/0.25, allocations: 131.8 kB / 434.8 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003857/0.2504, allocations: 343.2 kB / 435.1 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001632/0.2506, allocations: 48.53 kB / 435.2 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002761/0.2509, allocations: 151.5 kB / 435.3 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002264/0.2511, allocations: 159.4 kB / 435.5 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.466e-05/0.2512, allocations: 32 kB / 435.5 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.091e-05/0.2512, allocations: 32 kB / 435.5 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001181/0.2513, allocations: 95.72 kB / 435.6 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001189/0.2514, allocations: 99.56 kB / 435.7 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000347/0.2518, allocations: 294.8 kB / 436 MB, free: 2.445 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.2518, allocations: 4 kB / 436 MB, free: 2.441 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2518, allocations: 0 / 436 MB, free: 2.441 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.094e-06/0.2518, allocations: 0 / 436 MB, free: 2.441 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.001169/0.253, allocations: 0.5166 MB / 436.5 MB, free: 1.895 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.253, allocations: 12.03 kB / 436.6 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.034e-05/0.253, allocations: 4.188 kB / 436.6 MB, free: 1.879 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.378e-05/0.2531, allocations: 58.73 kB / 436.6 MB, free: 1.812 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.942e-05/0.2532, allocations: 32.8 kB / 436.6 MB, free: 1.781 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000349/0.2535, allocations: 190.7 kB / 436.8 MB, free: 1.57 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003305/0.2538, allocations: 351.3 kB / 437.2 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.57e-05/0.2539, allocations: 24 kB / 437.2 MB, free: 1.137 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008939/0.2548, allocations: 370.6 kB / 437.6 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/0.2548, allocations: 7.891 kB / 437.6 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.54e-05/0.2549, allocations: 12 kB / 437.6 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.2549, allocations: 4 kB / 437.6 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001358/0.2562, allocations: 0.5015 MB / 438.1 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001677/0.2579, allocations: 0.8913 MB / 439 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001012/0.2589, allocations: 314.9 kB / 439.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005119/0.2594, allocations: 169.2 kB / 439.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.088e-05/0.2594, allocations: 4 kB / 439.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.803e-05/0.2595, allocations: 38.56 kB / 439.5 MB, free: 14.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.442e-06/0.2595, allocations: 0 / 439.5 MB, free: 14.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=53): time 0.02688/0.2864, allocations: 5.678 MB / 445.2 MB, free: 9.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.096e-05/0.2864, allocations: 59.78 kB / 445.2 MB, free: 8.949 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002449/0.2867, allocations: 211.7 kB / 445.4 MB, free: 8.734 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.415e-05/0.2867, allocations: 29.7 kB / 445.5 MB, free: 8.699 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.2868, allocations: 153 kB / 445.6 MB, free: 8.547 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001655/0.287, allocations: 186.4 kB / 445.8 MB, free: 8.363 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002298/0.2872, allocations: 98.23 kB / 445.9 MB, free: 8.262 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.2873, allocations: 338.8 kB / 446.2 MB, free: 7.922 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001271/0.2886, allocations: 469 kB / 446.7 MB, free: 7.461 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001299/0.2899, allocations: 0.5225 MB / 447.2 MB, free: 6.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002252/0.2922, allocations: 0.8101 MB / 448 MB, free: 6.105 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.548e-06/0.2922, allocations: 4 kB / 448 MB, free: 6.102 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002702/0.2949, allocations: 1.005 MB / 449 MB, free: 5.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.2949, allocations: 7.938 kB / 449 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.2949, allocations: 0 / 449 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.2949, allocations: 4 kB / 449 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009488/0.2959, allocations: 163.8 kB / 449.2 MB, free: 4.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.2959, allocations: 7.938 kB / 449.2 MB, free: 4.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006695/0.2966, allocations: 95.91 kB / 449.3 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.751e-05/0.2966, allocations: 16 kB / 449.3 MB, free: 4.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: 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.0002225/0.2968, allocations: 153.8 kB / 449.5 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.467e-05/0.2969, allocations: 27.8 kB / 449.5 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001043/0.297, allocations: 55.31 kB / 449.5 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.297, allocations: 4 kB / 449.5 MB, free: 4.555 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.297, allocations: 4 kB / 449.5 MB, free: 4.551 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.297, allocations: 3.984 kB / 449.6 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004008/0.301, allocations: 1.746 MB / 451.3 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.063e-05/0.3011, allocations: 8.969 kB / 451.3 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006404/0.3017, allocations: 151.8 kB / 451.5 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.279e-05/0.3017, allocations: 15.94 kB / 451.5 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.246e-05/0.3018, allocations: 16 kB / 451.5 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.497e-05/0.3018, allocations: 15.94 kB / 451.5 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.167e-06/0.3018, allocations: 11.94 kB / 451.5 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002728/0.3045, allocations: 1.242 MB / 452.8 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001672/0.3047, allocations: 87.67 kB / 452.8 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.524e-05/0.3047, allocations: 23.98 kB / 452.9 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005123/0.3053, allocations: 63.92 kB / 452.9 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002014/0.3055, allocations: 95.64 kB / 453 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.055e-05/0.3055, allocations: 20 kB / 453 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001684/0.3057, allocations: 163.4 kB / 453.2 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3057, allocations: 0 / 453.2 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004844/0.3061, allocations: 100 kB / 453.3 MB, free: 0.5117 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.003084/0.3092, allocations: 1.794 MB / 455.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002298/0.3115, allocations: 0.7942 MB / 455.9 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.3115, allocations: 0 / 455.9 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009641/0.3125, allocations: 321.8 kB / 456.2 MB, free: 13.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006238/0.3131, allocations: 70.31 kB / 456.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01075/0.3239, allocations: 5.297 MB / 461.6 MB, free: 7.793 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002262/0.3241, allocations: 180.2 kB / 461.7 MB, free: 7.602 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004066/0.3245, allocations: 82.88 kB / 461.8 MB, free: 7.523 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003/0.3248, allocations: 91.42 kB / 461.9 MB, free: 7.434 MB / 366.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3248, allocations: 0 / 461.9 MB, free: 7.434 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03374/0.3585, allocations: 9.225 MB / 471.1 MB, free: 14.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.84/11.2, allocations: 4.062 kB / 471.1 MB, free: 14.43 MB / 382.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --stepSize=0.000798722 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 13.568278338992968]