Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.001377/0.001377, allocations: 112 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.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.00156/0.00156, allocations: 181.3 kB / 23.72 MB, free: 4.699 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.51/1.51, allocations: 225.6 MB / 252.5 MB, free: 13.04 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.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00186/0.00186, allocations: 48.03 kB / 370.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3061/0.3079, allocations: 52.19 MB / 422.6 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004634/0.3125, allocations: 2.346 MB / 425 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001817/0.3144, allocations: 0.7872 MB / 425.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002742/0.3146, allocations: 11.94 kB / 425.8 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004101/0.315, allocations: 47.56 kB / 425.8 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003334/0.3154, allocations: 55.56 kB / 425.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006677/0.3161, allocations: 175.6 kB / 426 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005956/0.3166, allocations: 379.6 kB / 426.4 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002097/0.3169, allocations: 63.81 kB / 426.5 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003483/0.3172, allocations: 171.4 kB / 426.6 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000323/0.3175, allocations: 175.3 kB / 426.8 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.234e-05/0.3176, allocations: 36 kB / 426.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.454e-05/0.3177, allocations: 32 kB / 426.9 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001344/0.3178, allocations: 95.72 kB / 427 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001684/0.318, allocations: 139.3 kB / 427.1 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004678/0.3185, allocations: 335 kB / 427.4 MB, free: 9.914 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.3185, allocations: 0 / 427.4 MB, free: 9.914 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3185, allocations: 0 / 427.4 MB, free: 9.914 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.701e-05/0.3185, allocations: 0 / 427.4 MB, free: 9.914 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001334/0.3198, allocations: 0.5483 MB / 428 MB, free: 9.336 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/0.3199, allocations: 8.031 kB / 428 MB, free: 9.328 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.287e-05/0.32, allocations: 70.72 kB / 428.1 MB, free: 9.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.775e-05/0.3201, allocations: 36.75 kB / 428.1 MB, free: 9.215 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004726/0.3205, allocations: 210 kB / 428.3 MB, free: 8.988 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003578/0.3209, allocations: 351.9 kB / 428.6 MB, free: 8.578 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.469e-05/0.321, allocations: 32.38 kB / 428.7 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001314/0.3223, allocations: 0.5541 MB / 429.2 MB, free: 7.965 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.686e-05/0.3223, allocations: 0 / 429.2 MB, free: 7.965 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.62e-05/0.3223, allocations: 12 kB / 429.2 MB, free: 7.953 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.3223, allocations: 4 kB / 429.2 MB, free: 7.949 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001387/0.3237, allocations: 0.5152 MB / 429.8 MB, free: 7.434 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001619/0.3253, allocations: 0.949 MB / 430.7 MB, free: 6.418 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001597/0.3269, allocations: 484.5 kB / 431.2 MB, free: 5.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006/0.3275, allocations: 235.4 kB / 431.4 MB, free: 5.668 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.23e-05/0.3276, allocations: 11.94 kB / 431.4 MB, free: 5.656 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.383e-05/0.3276, allocations: 38.56 kB / 431.5 MB, free: 5.609 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 1.693e-06/0.3276, allocations: 0 / 431.5 MB, free: 5.609 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03789/0.3655, allocations: 5.731 MB / 437.2 MB, free: 15.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001365/0.3657, allocations: 141 kB / 437.3 MB, free: 15.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002439/0.3659, allocations: 199.3 kB / 437.5 MB, free: 15.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.338e-05/0.366, allocations: 37.7 kB / 437.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001239/0.3661, allocations: 141.7 kB / 437.7 MB, free: 15.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002215/0.3663, allocations: 202.2 kB / 437.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002943/0.3666, allocations: 110.7 kB / 438 MB, free: 15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002118/0.3668, allocations: 342.8 kB / 438.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001646/0.3685, allocations: 0.6149 MB / 438.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001773/0.3703, allocations: 0.8002 MB / 439.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00306/0.3733, allocations: 1.247 MB / 441 MB, free: 11.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.216e-06/0.3733, allocations: 7.938 kB / 441 MB, free: 11.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003593/0.3769, allocations: 1.39 MB / 442.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.403e-05/0.377, allocations: 8 kB / 442.4 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.158e-05/0.377, allocations: 8.312 kB / 442.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.431e-05/0.377, allocations: 8 kB / 442.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001425/0.3784, allocations: 211.7 kB / 442.6 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.61e-05/0.3785, allocations: 11.98 kB / 442.6 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001007/0.3795, allocations: 103.8 kB / 442.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.085e-05/0.3796, allocations: 27.98 kB / 442.8 MB, free: 10.06 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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.000402/0.38, allocations: 194.6 kB / 443 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003844/0.3803, allocations: 157.4 kB / 443.1 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002175/0.3806, allocations: 59.53 kB / 443.2 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.156e-05/0.3806, allocations: 8 kB / 443.2 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.5e-05/0.3806, allocations: 0 / 443.2 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-05/0.3806, allocations: 16.44 kB / 443.2 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005236/0.3859, allocations: 2.14 MB / 445.3 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-05/0.3859, allocations: 11.98 kB / 445.3 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007835/0.3867, allocations: 187.8 kB / 445.5 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-05/0.3867, allocations: 12 kB / 445.5 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.258e-05/0.3867, allocations: 24 kB / 445.6 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.962e-05/0.3868, allocations: 19.92 kB / 445.6 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.762e-05/0.3868, allocations: 15.94 kB / 445.6 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003431/0.3902, allocations: 1.561 MB / 447.2 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002118/0.3904, allocations: 79.75 kB / 447.2 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.872e-05/0.3905, allocations: 35.92 kB / 447.3 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005779/0.3911, allocations: 75.98 kB / 447.3 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002135/0.3913, allocations: 91.64 kB / 447.4 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.517e-05/0.3913, allocations: 35.94 kB / 447.5 MB, free: 5.012 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001466/0.3915, allocations: 143.2 kB / 447.6 MB, free: 4.871 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3915, allocations: 0 / 447.6 MB, free: 4.871 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006874/0.3922, allocations: 124 kB / 447.7 MB, free: 4.75 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.003796/0.396, allocations: 2.125 MB / 449.9 MB, free: 2.465 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002959/0.3989, allocations: 1.029 MB / 450.9 MB, free: 1.434 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/0.3989, allocations: 1.375 kB / 450.9 MB, free: 1.434 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001001/0.3999, allocations: 337.8 kB / 451.2 MB, free: 1.105 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000933/0.4009, allocations: 131.7 kB / 451.3 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01409/0.415, allocations: 6.788 MB / 458.1 MB, free: 9.699 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005894/0.4156, allocations: 0.8089 MB / 458.9 MB, free: 8.863 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000502/0.4161, allocations: 95.3 kB / 459 MB, free: 8.766 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004233/0.4165, allocations: 115.4 kB / 459.1 MB, free: 8.652 MB / 366.1 MB Notification: Performance of SimCode: time 1.322e-06/0.4165, allocations: 4 kB / 459.2 MB, free: 8.648 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04939/0.4659, allocations: 11.96 MB / 471.1 MB, free: 12.83 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.81/12.27, allocations: 2.578 kB / 471.1 MB, free: 12.83 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.059229162987322]