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.0007869/0.0007869, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007407/0.0007407, allocations: 149.4 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.9121/0.9121, allocations: 173.4 MB / 200.5 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.664e-05/1.82e-05, allocations: 2.281 kB / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002394/0.002412, allocations: 2.056 MB / 320.5 MB, free: 4.305 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008551/0.003267, allocations: 0.6198 MB / 321.1 MB, free: 3.68 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.722e-05/0.003365, allocations: 7.938 kB / 321.1 MB, free: 3.672 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002406/0.003605, allocations: 55.58 kB / 321.1 MB, free: 3.617 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001168/0.003722, allocations: 51.56 kB / 321.2 MB, free: 3.566 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004673/0.004189, allocations: 123.8 kB / 321.3 MB, free: 3.445 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002884/0.004478, allocations: 347.1 kB / 321.7 MB, free: 3.105 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000136/0.004614, allocations: 60.48 kB / 321.7 MB, free: 3.043 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002027/0.004817, allocations: 199.6 kB / 321.9 MB, free: 2.848 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001616/0.004978, allocations: 127.7 kB / 322 MB, free: 2.723 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.923e-05/0.005017, allocations: 28 kB / 322.1 MB, free: 2.695 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.003e-05/0.005047, allocations: 35.94 kB / 322.1 MB, free: 2.66 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.29e-05/0.00512, allocations: 83.77 kB / 322.2 MB, free: 2.578 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.656e-05/0.005187, allocations: 91.78 kB / 322.3 MB, free: 2.488 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002496/0.005437, allocations: 311.1 kB / 322.6 MB, free: 2.184 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.005439, allocations: 0 / 322.6 MB, free: 2.184 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.00544, allocations: 0 / 322.6 MB, free: 2.184 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.767e-06/0.005444, allocations: 4 kB / 322.6 MB, free: 2.18 MB / 282.7 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.0007116/0.006155, allocations: 0.509 MB / 323.1 MB, free: 1.641 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.006195, allocations: 8.922 kB / 323.1 MB, free: 1.633 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.97e-05/0.006245, allocations: 58.73 kB / 323.2 MB, free: 1.566 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.794e-05/0.006293, allocations: 40.73 kB / 323.2 MB, free: 1.527 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002536/0.006546, allocations: 196.9 kB / 323.4 MB, free: 1.312 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001895/0.006736, allocations: 339.8 kB / 323.7 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.892e-05/0.006775, allocations: 24.38 kB / 323.7 MB, free: 0.8906 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005221/0.007297, allocations: 382.7 kB / 324.1 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.007309, allocations: 0 / 324.1 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.139e-05/0.007331, allocations: 12 kB / 324.1 MB, free: 0.4922 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.007337, allocations: 4 kB / 324.1 MB, free: 500 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007584/0.008095, allocations: 493.6 kB / 324.6 MB, free: 4 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001079/0.009174, allocations: 0.8991 MB / 325.5 MB, free: 15.05 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005837/0.009758, allocations: 305.3 kB / 325.8 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003003/0.01006, allocations: 172.7 kB / 326 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.834e-05/0.01009, allocations: 4 kB / 326 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.861e-05/0.0101, allocations: 38.56 kB / 326 MB, free: 14.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.533e-06/0.01011, allocations: 3.938 kB / 326 MB, free: 14.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=53): time 0.01366/0.02377, allocations: 5.675 MB / 331.7 MB, free: 8.789 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.691e-05/0.0238, allocations: 63.83 kB / 331.8 MB, free: 8.715 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001629/0.02397, allocations: 214.3 kB / 332 MB, free: 8.496 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.603e-05/0.024, allocations: 29.7 kB / 332 MB, free: 8.461 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.688e-05/0.02407, allocations: 153 kB / 332.1 MB, free: 8.309 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001055/0.02418, allocations: 186.3 kB / 332.3 MB, free: 8.125 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001371/0.02431, allocations: 94.34 kB / 332.4 MB, free: 8.027 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.561e-05/0.0244, allocations: 338.8 kB / 332.8 MB, free: 7.688 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007392/0.02514, allocations: 465 kB / 333.2 MB, free: 7.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008108/0.02595, allocations: 0.5341 MB / 333.7 MB, free: 6.684 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001316/0.02726, allocations: 0.8064 MB / 334.5 MB, free: 5.859 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.02727, allocations: 0 / 334.5 MB, free: 5.859 MB / 298.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001552/0.02882, allocations: 1.001 MB / 335.5 MB, free: 4.852 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.02883, allocations: 8 kB / 335.6 MB, free: 4.844 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.02884, allocations: 0 / 335.6 MB, free: 4.844 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.02886, allocations: 4 kB / 335.6 MB, free: 4.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004902/0.02935, allocations: 175.8 kB / 335.7 MB, free: 4.668 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.02935, allocations: 7.938 kB / 335.7 MB, free: 4.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003104/0.02966, allocations: 83.89 kB / 335.8 MB, free: 4.578 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.54e-05/0.0297, allocations: 16 kB / 335.8 MB, free: 4.562 MB / 298.7 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.000151/0.02985, allocations: 158.4 kB / 336 MB, free: 4.398 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.665e-05/0.0299, allocations: 23.86 kB / 336 MB, free: 4.375 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.802e-05/0.02996, allocations: 55.3 kB / 336.1 MB, free: 4.32 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.02996, allocations: 11.94 kB / 336.1 MB, free: 4.309 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.02997, allocations: 3.938 kB / 336.1 MB, free: 4.305 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.02997, allocations: 3.984 kB / 336.1 MB, free: 4.301 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002342/0.03231, allocations: 1.749 MB / 337.8 MB, free: 2.395 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.541e-06/0.03232, allocations: 8 kB / 337.8 MB, free: 2.387 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003097/0.03263, allocations: 147.7 kB / 338 MB, free: 2.242 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.273e-06/0.03264, allocations: 12 kB / 338 MB, free: 2.23 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.03e-05/0.03267, allocations: 20 kB / 338 MB, free: 2.211 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.606e-06/0.03267, allocations: 15.92 kB / 338 MB, free: 2.195 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.484e-06/0.03268, allocations: 24.12 kB / 338.1 MB, free: 2.172 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001572/0.03425, allocations: 1.224 MB / 339.3 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001077/0.03436, allocations: 71.89 kB / 339.4 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.825e-05/0.0344, allocations: 27.98 kB / 339.4 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002717/0.03467, allocations: 75.84 kB / 339.5 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001274/0.0348, allocations: 87.72 kB / 339.5 MB, free: 0.5508 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.19e-05/0.03482, allocations: 23.98 kB / 339.6 MB, free: 0.5273 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001009/0.03492, allocations: 156.3 kB / 339.7 MB, free: 384 kB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03492, allocations: 0 / 339.7 MB, free: 384 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003008/0.03522, allocations: 92 kB / 339.8 MB, free: 292 kB / 298.7 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.001837/0.03706, allocations: 1.792 MB / 341.6 MB, free: 14.36 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001271/0.03833, allocations: 0.7983 MB / 342.4 MB, free: 13.57 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.03834, allocations: 4 kB / 342.4 MB, free: 13.56 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005348/0.03887, allocations: 329.8 kB / 342.7 MB, free: 13.24 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003998/0.03927, allocations: 58.47 kB / 342.8 MB, free: 13.19 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006089/0.04536, allocations: 5.226 MB / 348 MB, free: 7.641 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000119/0.04548, allocations: 180.2 kB / 348.2 MB, free: 7.449 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000239/0.04572, allocations: 82.88 kB / 348.3 MB, free: 7.367 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001938/0.04591, allocations: 96.47 kB / 348.4 MB, free: 7.273 MB / 314.7 MB Notification: Performance of SimCode: time 4.91e-07/0.04591, allocations: 0 / 348.4 MB, free: 7.273 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01929/0.0652, allocations: 9.515 MB / 357.9 MB, free: 13.95 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.895/6.96, allocations: 4.062 kB / 357.9 MB, free: 13.95 MB / 330.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins/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: 8.680255248211324]