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.001448/0.001448, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.001762/0.001762, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.541/1.541, allocations: 230.6 MB / 257.5 MB, free: 7.969 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.001798/0.001798, allocations: 55.92 kB / 377.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2825/0.2843, allocations: 53.36 MB / 431.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.004616/0.2889, allocations: 2.178 MB / 433.3 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001582/0.2904, allocations: 0.6899 MB / 434 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001725/0.2906, allocations: 7.938 kB / 434 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003136/0.2909, allocations: 43.62 kB / 434 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001717/0.2911, allocations: 51.62 kB / 434.1 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003976/0.2915, allocations: 135.8 kB / 434.2 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004254/0.2919, allocations: 339.2 kB / 434.5 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001819/0.2921, allocations: 58.2 kB / 434.6 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003107/0.2924, allocations: 151.5 kB / 434.8 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002625/0.2927, allocations: 159.4 kB / 434.9 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.987e-05/0.2927, allocations: 32 kB / 434.9 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.978e-05/0.2928, allocations: 28 kB / 435 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001103/0.2929, allocations: 79.8 kB / 435 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001478/0.293, allocations: 123.4 kB / 435.2 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004244/0.2935, allocations: 294.8 kB / 435.5 MB, free: 2.488 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.2935, allocations: 4 kB / 435.5 MB, free: 2.484 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2935, allocations: 3.938 kB / 435.5 MB, free: 2.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.683e-06/0.2935, allocations: 0 / 435.5 MB, free: 2.48 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.001265/0.2947, allocations: 0.5049 MB / 436 MB, free: 1.945 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/0.2948, allocations: 12.03 kB / 436 MB, free: 1.934 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.451e-05/0.2949, allocations: 66.72 kB / 436 MB, free: 1.859 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.7e-05/0.295, allocations: 32.8 kB / 436.1 MB, free: 1.828 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004221/0.2954, allocations: 182.7 kB / 436.3 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003512/0.2957, allocations: 355.5 kB / 436.6 MB, free: 1.211 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.413e-05/0.2958, allocations: 20 kB / 436.6 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008673/0.2967, allocations: 362.6 kB / 437 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.949e-05/0.2967, allocations: 3.953 kB / 437 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.235e-05/0.2967, allocations: 12 kB / 437 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.2967, allocations: 11.94 kB / 437 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001366/0.2981, allocations: 0.4898 MB / 437.5 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002033/0.3001, allocations: 0.946 MB / 438.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001235/0.3014, allocations: 316.7 kB / 438.7 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005045/0.3019, allocations: 169.2 kB / 438.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.496e-05/0.3019, allocations: 8.219 kB / 438.9 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.264e-05/0.3019, allocations: 34.8 kB / 439 MB, free: 14.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.384e-06/0.3019, allocations: 0 / 439 MB, free: 14.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.02778/0.3297, allocations: 5.655 MB / 444.6 MB, free: 9.059 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.904e-05/0.3298, allocations: 55.84 kB / 444.7 MB, free: 8.992 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003277/0.3301, allocations: 199.8 kB / 444.9 MB, free: 8.789 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.253e-05/0.3302, allocations: 37.64 kB / 444.9 MB, free: 8.746 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001379/0.3303, allocations: 157 kB / 445 MB, free: 8.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002081/0.3305, allocations: 186.4 kB / 445.2 MB, free: 8.406 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002379/0.3308, allocations: 94.3 kB / 445.3 MB, free: 8.309 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001905/0.331, allocations: 330.8 kB / 445.6 MB, free: 7.977 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001309/0.3323, allocations: 473 kB / 446.1 MB, free: 7.512 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001348/0.3336, allocations: 0.5186 MB / 446.6 MB, free: 6.984 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002319/0.3359, allocations: 0.7984 MB / 447.4 MB, free: 6.172 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3359, allocations: 0 / 447.4 MB, free: 6.172 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002769/0.3387, allocations: 0.9892 MB / 448.4 MB, free: 5.176 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.3387, allocations: 7.938 kB / 448.4 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.799e-06/0.3387, allocations: 4 kB / 448.4 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.12e-05/0.3388, allocations: 0 / 448.4 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/0.3398, allocations: 167.8 kB / 448.6 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.37e-05/0.3398, allocations: 7.938 kB / 448.6 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006662/0.3405, allocations: 87.88 kB / 448.7 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.24e-05/0.3405, allocations: 16 kB / 448.7 MB, free: 4.891 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.0002472/0.3408, allocations: 157.8 kB / 448.9 MB, free: 4.727 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.95e-05/0.3409, allocations: 31.75 kB / 448.9 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000142/0.341, allocations: 55.25 kB / 448.9 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.341, allocations: 4 kB / 448.9 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.341, allocations: 4 kB / 448.9 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.654e-06/0.341, allocations: 3.984 kB / 448.9 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004326/0.3453, allocations: 1.845 MB / 450.8 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.003e-05/0.3454, allocations: 8 kB / 450.8 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006763/0.346, allocations: 144.6 kB / 450.9 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.348e-05/0.346, allocations: 11.94 kB / 451 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.747e-05/0.3461, allocations: 23.98 kB / 451 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.557e-05/0.3461, allocations: 19.94 kB / 451 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.638e-06/0.3461, allocations: 11.94 kB / 451 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002875/0.349, allocations: 1.228 MB / 452.2 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001783/0.3492, allocations: 67.8 kB / 452.3 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.881e-05/0.3492, allocations: 19.98 kB / 452.3 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005202/0.3498, allocations: 75.86 kB / 452.4 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002055/0.35, allocations: 91.64 kB / 452.5 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.682e-05/0.35, allocations: 20 kB / 452.5 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001742/0.3502, allocations: 155.5 kB / 452.7 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3502, allocations: 4 kB / 452.7 MB, free: 0.625 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004948/0.3507, allocations: 92 kB / 452.8 MB, free: 0.5352 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.00326/0.3539, allocations: 1.791 MB / 454.5 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002393/0.3563, allocations: 0.7825 MB / 455.3 MB, free: 13.83 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.3563, allocations: 4.062 kB / 455.3 MB, free: 13.83 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009504/0.3573, allocations: 309.6 kB / 455.6 MB, free: 13.53 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006444/0.3579, allocations: 63.95 kB / 455.7 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01101/0.3689, allocations: 5.25 MB / 460.9 MB, free: 7.891 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005506/0.3695, allocations: 0.7801 MB / 461.7 MB, free: 7.086 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004134/0.3699, allocations: 87.19 kB / 461.8 MB, free: 7.004 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002892/0.3702, allocations: 95.41 kB / 461.9 MB, free: 6.91 MB / 366.1 MB Notification: Performance of SimCode: time 6.12e-07/0.3702, allocations: 0 / 461.9 MB, free: 6.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03907/0.4093, allocations: 8.893 MB / 470.8 MB, free: 14.17 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.27/12.67, allocations: 7.797 kB / 470.8 MB, free: 14.16 MB / 382.1 MB " [Timeout remaining time 647] (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: 15.350047507090494]