Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001349/0.001349, allocations: 101.5 kB / 21.21 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 191.4 kB / 24.49 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 43.92 kB / 371.1 MB, free: 9.707 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.242/0.2434, allocations: 52.19 MB / 423.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003687/0.2471, allocations: 2.071 MB / 425.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001226/0.2483, allocations: 0.6082 MB / 426 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001237/0.2484, allocations: 7.938 kB / 426 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002967/0.2487, allocations: 47.69 kB / 426.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001633/0.2489, allocations: 51.58 kB / 426.1 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003706/0.2493, allocations: 123.8 kB / 426.2 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000437/0.2497, allocations: 347.1 kB / 426.6 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001628/0.2499, allocations: 44.58 kB / 426.6 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002176/0.2501, allocations: 147.5 kB / 426.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002289/0.2503, allocations: 159.4 kB / 426.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.191e-05/0.2504, allocations: 32 kB / 427 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.319e-05/0.2504, allocations: 32 kB / 427 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001158/0.2505, allocations: 91.67 kB / 427.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001282/0.2507, allocations: 115.5 kB / 427.2 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003649/0.251, allocations: 286.9 kB / 427.5 MB, free: 10.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.251, allocations: 4 kB / 427.5 MB, free: 10.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.251, allocations: 0 / 427.5 MB, free: 10.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.251, allocations: 0 / 427.5 MB, free: 10.25 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.001173/0.2522, allocations: 0.5081 MB / 428 MB, free: 9.711 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.2523, allocations: 12.02 kB / 428 MB, free: 9.699 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.168e-05/0.2523, allocations: 8.125 kB / 428 MB, free: 9.691 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.971e-05/0.2523, allocations: 58.73 kB / 428.1 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.795e-05/0.2524, allocations: 36.75 kB / 428.1 MB, free: 9.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003577/0.2528, allocations: 190.7 kB / 428.3 MB, free: 9.379 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003235/0.2531, allocations: 351.3 kB / 428.6 MB, free: 8.969 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.944e-05/0.2532, allocations: 20 kB / 428.6 MB, free: 8.949 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009018/0.2541, allocations: 374.5 kB / 429 MB, free: 8.57 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.766e-05/0.2541, allocations: 4 kB / 429 MB, free: 8.566 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.229e-05/0.2541, allocations: 8 kB / 429 MB, free: 8.559 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.2541, allocations: 4 kB / 429 MB, free: 8.555 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001356/0.2555, allocations: 0.4977 MB / 429.5 MB, free: 8.059 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00168/0.2572, allocations: 0.8989 MB / 430.4 MB, free: 7.105 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001009/0.2582, allocations: 318.1 kB / 430.7 MB, free: 6.785 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005132/0.2587, allocations: 168.7 kB / 430.9 MB, free: 6.617 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.277e-05/0.2587, allocations: 4 kB / 430.9 MB, free: 6.613 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.484e-05/0.2587, allocations: 34.56 kB / 430.9 MB, free: 6.57 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.423e-06/0.2587, allocations: 0 / 430.9 MB, free: 6.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=53): time 0.02607/0.2848, allocations: 5.671 MB / 436.6 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.215e-05/0.2849, allocations: 59.84 kB / 436.7 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000275/0.2851, allocations: 214.8 kB / 436.9 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.856e-05/0.2852, allocations: 37.64 kB / 436.9 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.2853, allocations: 153 kB / 437.1 MB, free: 360 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001919/0.2855, allocations: 186.4 kB / 437.2 MB, free: 172 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002286/0.2857, allocations: 86.36 kB / 437.3 MB, free: 80 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.2859, allocations: 342.8 kB / 437.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001284/0.2872, allocations: 477 kB / 438.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001309/0.2885, allocations: 0.5225 MB / 438.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002285/0.2908, allocations: 0.8101 MB / 439.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.2908, allocations: 0 / 439.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002718/0.2935, allocations: 1.005 MB / 440.5 MB, free: 12.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.2935, allocations: 7.938 kB / 440.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.397e-06/0.2935, allocations: 4 kB / 440.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.2936, allocations: 4 kB / 440.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009511/0.2945, allocations: 167.7 kB / 440.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/0.2945, allocations: 0 / 440.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006437/0.2952, allocations: 91.91 kB / 440.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.076e-05/0.2952, allocations: 16 kB / 440.7 MB, free: 12.61 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.0002448/0.2955, allocations: 166.8 kB / 440.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.673e-05/0.2955, allocations: 35.75 kB / 440.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001147/0.2957, allocations: 47.31 kB / 441 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.154e-05/0.2957, allocations: 4 kB / 441 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.2957, allocations: 0 / 441 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.2957, allocations: 7.984 kB / 441 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004016/0.2997, allocations: 1.74 MB / 442.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.016e-05/0.2997, allocations: 8 kB / 442.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000622/0.3003, allocations: 148.7 kB / 442.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.112e-05/0.3004, allocations: 23.86 kB / 442.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.531e-05/0.3004, allocations: 20 kB / 442.9 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-05/0.3004, allocations: 15.94 kB / 443 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.927e-06/0.3004, allocations: 11.94 kB / 443 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002796/0.3032, allocations: 1.23 MB / 444.2 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001634/0.3034, allocations: 79.78 kB / 444.3 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.693e-05/0.3035, allocations: 20 kB / 444.3 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005093/0.304, allocations: 75.91 kB / 444.4 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000184/0.3041, allocations: 91.64 kB / 444.5 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.608e-05/0.3042, allocations: 24 kB / 444.5 MB, free: 8.582 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000178/0.3044, allocations: 151.2 kB / 444.6 MB, free: 8.434 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3044, allocations: 0 / 444.6 MB, free: 8.434 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004836/0.3049, allocations: 103.9 kB / 444.7 MB, free: 8.332 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.003131/0.308, allocations: 1.798 MB / 446.5 MB, free: 6.406 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00224/0.3102, allocations: 0.7942 MB / 447.3 MB, free: 5.609 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/0.3102, allocations: 4 kB / 447.3 MB, free: 5.605 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009073/0.3111, allocations: 325.7 kB / 447.6 MB, free: 5.289 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000602/0.3117, allocations: 71.52 kB / 447.7 MB, free: 5.223 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01053/0.3223, allocations: 5.299 MB / 453 MB, free: 15.6 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002099/0.3225, allocations: 176.2 kB / 453.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003948/0.3229, allocations: 86.88 kB / 453.3 MB, free: 15.33 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003118/0.3232, allocations: 95.42 kB / 453.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3232, allocations: 0 / 453.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03282/0.356, allocations: 9.226 MB / 462.6 MB, free: 6.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.29, allocations: 4 kB / 462.6 MB, free: 6.227 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --stepSize=0.000798722 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.65690487693064]