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.001235/0.001235, allocations: 107.1 kB / 20.44 MB, free: 1.184 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.001375/0.001375, allocations: 206.9 kB / 23.73 MB, free: 4.395 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.409/1.409, allocations: 230.6 MB / 257.5 MB, free: 7.785 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 55.91 kB / 377.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2621/0.2636, allocations: 53.37 MB / 431.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.00352/0.2671, allocations: 2.086 MB / 433.1 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001234/0.2684, allocations: 0.651 MB / 433.8 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001053/0.2685, allocations: 0 / 433.8 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002723/0.2687, allocations: 51.62 kB / 433.8 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001531/0.2689, allocations: 43.64 kB / 433.9 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003662/0.2693, allocations: 131.8 kB / 434 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003953/0.2697, allocations: 347.1 kB / 434.4 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001649/0.2698, allocations: 54.2 kB / 434.4 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002889/0.2701, allocations: 147.5 kB / 434.6 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000243/0.2704, allocations: 163.4 kB / 434.7 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.939e-05/0.2704, allocations: 32 kB / 434.7 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.499e-05/0.2704, allocations: 28 kB / 434.8 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001142/0.2706, allocations: 91.73 kB / 434.9 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001248/0.2707, allocations: 107.5 kB / 435 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003483/0.271, allocations: 290.8 kB / 435.3 MB, free: 2.422 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.271, allocations: 0 / 435.3 MB, free: 2.422 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.271, allocations: 0 / 435.3 MB, free: 2.422 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.271, allocations: 0 / 435.3 MB, free: 2.422 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.001215/0.2723, allocations: 0.5231 MB / 435.8 MB, free: 1.871 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.2723, allocations: 8.031 kB / 435.8 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.825e-05/0.2724, allocations: 66.73 kB / 435.8 MB, free: 1.789 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.681e-05/0.2725, allocations: 32.78 kB / 435.9 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003934/0.2729, allocations: 188.8 kB / 436.1 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00033/0.2732, allocations: 351.5 kB / 436.4 MB, free: 1.141 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.724e-05/0.2733, allocations: 28 kB / 436.4 MB, free: 1.113 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009084/0.2742, allocations: 366.6 kB / 436.8 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.125e-05/0.2742, allocations: 7.953 kB / 436.8 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.007e-05/0.2742, allocations: 4 kB / 436.8 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.233e-05/0.2742, allocations: 8 kB / 436.8 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00136/0.2756, allocations: 0.4976 MB / 437.3 MB, free: 228 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001788/0.2774, allocations: 0.8951 MB / 438.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001006/0.2784, allocations: 310.9 kB / 438.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005152/0.2789, allocations: 169.2 kB / 438.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.717e-05/0.2789, allocations: 4 kB / 438.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.079e-05/0.279, allocations: 34.56 kB / 438.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.763e-06/0.279, allocations: 0 / 438.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=53): time 0.02744/0.3064, allocations: 5.674 MB / 444.4 MB, free: 9.012 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.035e-05/0.3065, allocations: 55.84 kB / 444.4 MB, free: 8.945 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002756/0.3067, allocations: 210.9 kB / 444.6 MB, free: 8.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.955e-05/0.3068, allocations: 33.7 kB / 444.7 MB, free: 8.691 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/0.3069, allocations: 153 kB / 444.8 MB, free: 8.539 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001787/0.3071, allocations: 186.4 kB / 445 MB, free: 8.355 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002229/0.3073, allocations: 86.34 kB / 445.1 MB, free: 8.266 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.3075, allocations: 338.8 kB / 445.4 MB, free: 7.926 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001254/0.3087, allocations: 477 kB / 445.9 MB, free: 7.457 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001302/0.31, allocations: 0.5224 MB / 446.4 MB, free: 6.926 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002237/0.3123, allocations: 0.814 MB / 447.2 MB, free: 6.098 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.3123, allocations: 0 / 447.2 MB, free: 6.098 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002635/0.3149, allocations: 0.997 MB / 448.2 MB, free: 5.094 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.3149, allocations: 8 kB / 448.2 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/0.3149, allocations: 15.88 kB / 448.2 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.315, allocations: 0 / 448.2 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009625/0.3159, allocations: 167.8 kB / 448.4 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.3159, allocations: 4 kB / 448.4 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006791/0.3166, allocations: 91.89 kB / 448.5 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.98e-05/0.3167, allocations: 16 kB / 448.5 MB, free: 4.797 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.0002422/0.3169, allocations: 157.7 kB / 448.7 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.937e-05/0.317, allocations: 31.81 kB / 448.7 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001308/0.3171, allocations: 55.23 kB / 448.8 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.3171, allocations: 4 kB / 448.8 MB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.3171, allocations: 3.938 kB / 448.8 MB, free: 4.539 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.3172, allocations: 0 / 448.8 MB, free: 4.539 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004058/0.3212, allocations: 1.755 MB / 450.5 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.899e-06/0.3212, allocations: 8 kB / 450.5 MB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006575/0.3219, allocations: 144.4 kB / 450.7 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.243e-05/0.3219, allocations: 16 kB / 450.7 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.707e-05/0.3219, allocations: 23.94 kB / 450.7 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.508e-05/0.322, allocations: 19.92 kB / 450.7 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.386e-06/0.322, allocations: 8 kB / 450.7 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00276/0.3247, allocations: 1.246 MB / 452 MB, free: 1.035 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001668/0.3249, allocations: 71.8 kB / 452.1 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.967e-05/0.325, allocations: 23.98 kB / 452.1 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005275/0.3255, allocations: 75.91 kB / 452.2 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000189/0.3257, allocations: 83.72 kB / 452.2 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.261e-05/0.3257, allocations: 24 kB / 452.3 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001748/0.3259, allocations: 152.3 kB / 452.4 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3259, allocations: 0 / 452.4 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000484/0.3264, allocations: 100 kB / 452.5 MB, free: 0.5156 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.003149/0.3295, allocations: 1.806 MB / 454.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002228/0.3318, allocations: 0.7942 MB / 455.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/0.3318, allocations: 3.938 kB / 455.1 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000915/0.3327, allocations: 325.7 kB / 455.4 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006637/0.3333, allocations: 59.91 kB / 455.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01051/0.3438, allocations: 5.305 MB / 460.8 MB, free: 7.777 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001959/0.344, allocations: 176.2 kB / 461 MB, free: 7.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004002/0.3444, allocations: 82.88 kB / 461 MB, free: 7.512 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002863/0.3447, allocations: 91.41 kB / 461.1 MB, free: 7.422 MB / 366.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3447, allocations: 4 kB / 461.1 MB, free: 7.418 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04026/0.385, allocations: 9.563 MB / 470.7 MB, free: 14.05 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.61/10.99, allocations: 3.188 kB / 470.7 MB, free: 14.05 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.33951683700434]