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.001923/0.001923, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.002388/0.002388, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.468/1.468, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.00145/0.00145, allocations: 48.06 kB / 378.5 MB, free: 3.188 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2692/0.2706, allocations: 53.37 MB / 431.9 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003712/0.2743, allocations: 2.176 MB / 434.1 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001376/0.2757, allocations: 0.6899 MB / 434.8 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001236/0.2758, allocations: 7.938 kB / 434.8 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002762/0.2761, allocations: 47.64 kB / 434.8 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001431/0.2762, allocations: 51.62 kB / 434.9 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003658/0.2766, allocations: 123.8 kB / 435 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003978/0.277, allocations: 339.2 kB / 435.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001792/0.2772, allocations: 60.5 kB / 435.4 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002968/0.2775, allocations: 155.5 kB / 435.5 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002495/0.2777, allocations: 159.4 kB / 435.7 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.902e-05/0.2778, allocations: 32 kB / 435.7 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.742e-05/0.2778, allocations: 28 kB / 435.8 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001032/0.2779, allocations: 79.8 kB / 435.8 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001228/0.278, allocations: 127.4 kB / 436 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003596/0.2784, allocations: 279.3 kB / 436.2 MB, free: 2.531 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2784, allocations: 4 kB / 436.2 MB, free: 2.527 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.2784, allocations: 3.938 kB / 436.2 MB, free: 2.523 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.027e-05/0.2784, allocations: 0 / 436.2 MB, free: 2.523 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.001122/0.2795, allocations: 0.5127 MB / 436.7 MB, free: 1.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.2796, allocations: 16.03 kB / 436.8 MB, free: 1.965 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.627e-05/0.2796, allocations: 4.188 kB / 436.8 MB, free: 1.961 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.652e-05/0.2797, allocations: 66.72 kB / 436.8 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.988e-05/0.2797, allocations: 32.8 kB / 436.9 MB, free: 1.855 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003617/0.2801, allocations: 192.7 kB / 437.1 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000339/0.2804, allocations: 351.3 kB / 437.4 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.538e-05/0.2805, allocations: 20 kB / 437.4 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008569/0.2814, allocations: 366.6 kB / 437.8 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.2814, allocations: 3.953 kB / 437.8 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.044e-05/0.2814, allocations: 8 kB / 437.8 MB, free: 0.832 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.939e-06/0.2814, allocations: 8 kB / 437.8 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001333/0.2827, allocations: 0.4898 MB / 438.3 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001747/0.2845, allocations: 0.9422 MB / 439.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001207/0.2857, allocations: 330.6 kB / 439.5 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004973/0.2862, allocations: 157.2 kB / 439.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.216e-05/0.2862, allocations: 4.234 kB / 439.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.2863, allocations: 38.8 kB / 439.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.854e-06/0.2863, allocations: 0 / 439.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.02744/0.3137, allocations: 5.656 MB / 445.4 MB, free: 9.082 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.864e-05/0.3137, allocations: 55.84 kB / 445.5 MB, free: 9.016 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002799/0.314, allocations: 195.8 kB / 445.6 MB, free: 8.816 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.353e-05/0.3141, allocations: 33.7 kB / 445.7 MB, free: 8.777 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.3142, allocations: 153 kB / 445.8 MB, free: 8.625 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000181/0.3144, allocations: 186.4 kB / 446 MB, free: 8.441 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002377/0.3146, allocations: 94.3 kB / 446.1 MB, free: 8.344 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.3148, allocations: 338.8 kB / 446.4 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001346/0.3161, allocations: 465 kB / 446.9 MB, free: 7.547 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001391/0.3175, allocations: 0.5224 MB / 447.4 MB, free: 7.016 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002389/0.3199, allocations: 0.8023 MB / 448.2 MB, free: 6.199 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.3199, allocations: 0 / 448.2 MB, free: 6.199 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002916/0.3228, allocations: 0.9892 MB / 449.2 MB, free: 5.203 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.545e-05/0.3228, allocations: 11.92 kB / 449.2 MB, free: 5.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.3229, allocations: 4 kB / 449.2 MB, free: 5.188 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.3229, allocations: 0 / 449.2 MB, free: 5.188 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009731/0.3239, allocations: 163.8 kB / 449.4 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.626e-05/0.3239, allocations: 8 kB / 449.4 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007201/0.3246, allocations: 91.91 kB / 449.5 MB, free: 4.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.346e-05/0.3247, allocations: 16 kB / 449.5 MB, free: 4.914 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.000258/0.3249, allocations: 153.7 kB / 449.6 MB, free: 4.754 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.325, allocations: 35.69 kB / 449.7 MB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001354/0.3252, allocations: 55.3 kB / 449.7 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/0.3252, allocations: 8 kB / 449.7 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.806e-06/0.3252, allocations: 0 / 449.7 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.3252, allocations: 7.984 kB / 449.7 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004412/0.3296, allocations: 1.845 MB / 451.6 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.329e-05/0.3296, allocations: 8 kB / 451.6 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006513/0.3303, allocations: 147.7 kB / 451.7 MB, free: 2.496 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.394e-05/0.3303, allocations: 11.94 kB / 451.8 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.183e-05/0.3303, allocations: 24.41 kB / 451.8 MB, free: 2.461 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.297e-05/0.3303, allocations: 19.92 kB / 451.8 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.287e-06/0.3303, allocations: 12 kB / 451.8 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002912/0.3333, allocations: 1.22 MB / 453 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001754/0.3334, allocations: 75.78 kB / 453.1 MB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.916e-05/0.3335, allocations: 19.98 kB / 453.1 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005257/0.334, allocations: 71.92 kB / 453.2 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001972/0.3342, allocations: 87.7 kB / 453.3 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.362e-05/0.3343, allocations: 24 kB / 453.3 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001753/0.3344, allocations: 147.5 kB / 453.4 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3344, allocations: 0 / 453.4 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004954/0.3349, allocations: 96 kB / 453.5 MB, free: 0.5703 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.003176/0.3381, allocations: 1.785 MB / 455.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002329/0.3404, allocations: 0.7824 MB / 456.1 MB, free: 13.87 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/0.3404, allocations: 0 / 456.1 MB, free: 13.87 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009567/0.3414, allocations: 325.8 kB / 456.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000607/0.342, allocations: 62.2 kB / 456.5 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01094/0.353, allocations: 5.252 MB / 461.7 MB, free: 7.922 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004531/0.3534, allocations: 0.784 MB / 462.5 MB, free: 7.113 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000392/0.3538, allocations: 79.19 kB / 462.6 MB, free: 7.039 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002898/0.3541, allocations: 91.42 kB / 462.7 MB, free: 6.949 MB / 366.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3541, allocations: 0 / 462.7 MB, free: 6.949 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03227/0.3864, allocations: 8.931 MB / 471.6 MB, free: 14.19 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.57, allocations: 12 kB / 471.6 MB, free: 14.18 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.146878838015255]