Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001403/0.001403, allocations: 114 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00147/0.00147, allocations: 214.7 kB / 23.75 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.556/1.556, allocations: 230.5 MB / 257.4 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 59.91 kB / 377.8 MB, free: 3.035 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3115/0.3134, allocations: 53.42 MB / 431.2 MB, free: 6.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004392/0.3178, allocations: 2.428 MB / 433.6 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002031/0.3198, allocations: 0.8766 MB / 434.5 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002429/0.3201, allocations: 11.88 kB / 434.5 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003419/0.3204, allocations: 55.56 kB / 434.5 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002706/0.3207, allocations: 71.48 kB / 434.6 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006901/0.3214, allocations: 195.6 kB / 434.8 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004966/0.3219, allocations: 391.5 kB / 435.2 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002547/0.3221, allocations: 75.8 kB / 435.3 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003678/0.3225, allocations: 175.5 kB / 435.4 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002937/0.3228, allocations: 187.2 kB / 435.6 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.246e-05/0.3228, allocations: 40 kB / 435.7 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.876e-05/0.3229, allocations: 36 kB / 435.7 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001297/0.323, allocations: 115.6 kB / 435.8 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001618/0.3232, allocations: 155.1 kB / 436 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004944/0.3237, allocations: 379 kB / 436.3 MB, free: 1.801 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.3237, allocations: 4 kB / 436.3 MB, free: 1.797 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.3237, allocations: 0 / 436.3 MB, free: 1.797 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.274e-06/0.3237, allocations: 0 / 436.3 MB, free: 1.797 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001339/0.325, allocations: 0.5948 MB / 436.9 MB, free: 1.168 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.3251, allocations: 15.97 kB / 436.9 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.132e-05/0.3252, allocations: 66.72 kB / 437 MB, free: 1.078 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.104e-05/0.3253, allocations: 52.7 kB / 437.1 MB, free: 1.027 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005088/0.3258, allocations: 253.3 kB / 437.3 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003509/0.3261, allocations: 347.9 kB / 437.6 MB, free: 356 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.124e-05/0.3262, allocations: 28.38 kB / 437.7 MB, free: 328 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001227/0.3274, allocations: 0.5782 MB / 438.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.087e-05/0.3274, allocations: 4 kB / 438.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.603e-05/0.3275, allocations: 12 kB / 438.3 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.3275, allocations: 8 kB / 438.3 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001342/0.3288, allocations: 0.5035 MB / 438.8 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00165/0.3305, allocations: 0.9647 MB / 439.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001624/0.3321, allocations: 494.4 kB / 440.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006181/0.3327, allocations: 231 kB / 440.4 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.678e-05/0.3328, allocations: 7.984 kB / 440.5 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.793e-05/0.3328, allocations: 54.44 kB / 440.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.756e-06/0.3328, allocations: 0 / 440.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03858/0.3714, allocations: 5.768 MB / 446.3 MB, free: 7.559 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001547/0.3716, allocations: 148.9 kB / 446.4 MB, free: 7.383 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003906/0.3719, allocations: 261.8 kB / 446.7 MB, free: 7.121 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.651e-05/0.372, allocations: 33.7 kB / 446.7 MB, free: 7.082 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.3722, allocations: 157.7 kB / 446.9 MB, free: 6.922 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002485/0.3724, allocations: 194.4 kB / 447.1 MB, free: 6.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000313/0.3727, allocations: 118.6 kB / 447.2 MB, free: 6.605 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001925/0.3729, allocations: 346.8 kB / 447.5 MB, free: 6.258 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001685/0.3746, allocations: 0.6149 MB / 448.1 MB, free: 5.645 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001775/0.3764, allocations: 0.7963 MB / 448.9 MB, free: 4.773 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003129/0.3795, allocations: 1.244 MB / 450.2 MB, free: 3.449 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.049e-05/0.3795, allocations: 8.375 kB / 450.2 MB, free: 3.441 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003734/0.3833, allocations: 1.406 MB / 451.6 MB, free: 2.027 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.126e-05/0.3833, allocations: 8 kB / 451.6 MB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/0.3833, allocations: 4 kB / 451.6 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.093e-05/0.3833, allocations: 11.94 kB / 451.6 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001383/0.3847, allocations: 211.7 kB / 451.8 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.176e-05/0.3847, allocations: 11.94 kB / 451.8 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009922/0.3857, allocations: 103.8 kB / 451.9 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.03e-05/0.3858, allocations: 27.98 kB / 451.9 MB, free: 1.656 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.0004105/0.3862, allocations: 185.6 kB / 452.1 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003665/0.3866, allocations: 169.2 kB / 452.3 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002026/0.3868, allocations: 67.61 kB / 452.4 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/0.3868, allocations: 12 kB / 452.4 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.053e-05/0.3868, allocations: 4 kB / 452.4 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.729e-06/0.3868, allocations: 3.984 kB / 452.4 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005188/0.392, allocations: 2.151 MB / 454.5 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.353e-05/0.392, allocations: 15.94 kB / 454.5 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007995/0.3928, allocations: 176.3 kB / 454.7 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.369e-05/0.3929, allocations: 19.98 kB / 454.7 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.686e-05/0.3929, allocations: 24 kB / 454.8 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.682e-05/0.3929, allocations: 23.94 kB / 454.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.406e-05/0.393, allocations: 19.88 kB / 454.8 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003383/0.3963, allocations: 1.561 MB / 456.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00031/0.3967, allocations: 103.6 kB / 456.5 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.504e-05/0.3967, allocations: 27.98 kB / 456.5 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006143/0.3974, allocations: 71.92 kB / 456.6 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002106/0.3976, allocations: 99.94 kB / 456.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.631e-05/0.3976, allocations: 32 kB / 456.7 MB, free: 12.56 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002131/0.3978, allocations: 189.2 kB / 456.9 MB, free: 12.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3978, allocations: 0 / 456.9 MB, free: 12.38 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007579/0.3986, allocations: 128.1 kB / 457 MB, free: 12.25 MB / 366.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.003794/0.4024, allocations: 2.148 MB / 459.1 MB, free: 9.957 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002937/0.4053, allocations: 1.034 MB / 460.2 MB, free: 8.918 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.445e-05/0.4053, allocations: 4 kB / 460.2 MB, free: 8.914 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00104/0.4064, allocations: 330.5 kB / 460.5 MB, free: 8.594 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001089/0.4075, allocations: 147.1 kB / 460.7 MB, free: 8.449 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0144/0.4219, allocations: 6.899 MB / 467.6 MB, free: 1.051 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005571/0.4224, allocations: 0.8284 MB / 468.4 MB, free: 200 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005688/0.423, allocations: 104.1 kB / 468.5 MB, free: 92 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000457/0.4235, allocations: 123.9 kB / 468.6 MB, free: 15.97 MB / 382.1 MB Notification: Performance of SimCode: time 1.523e-06/0.4235, allocations: 0 / 468.6 MB, free: 15.97 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06949/0.493, allocations: 12.37 MB / 481 MB, free: 3.715 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.18/12.68, allocations: 7.094 kB / 481 MB, free: 3.711 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000499563 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable load.phi in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable load.phi from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv failed! Error: Could not read variable PI.x in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.w,speed.flange.phi [Calling sys.exit(0), Time elapsed: 15.484247259002586]