Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.001231/0.001231, allocations: 107.5 kB / 20.44 MB, free: 1.066 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.001462/0.001462, allocations: 187.5 kB / 23.7 MB, free: 4.191 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.398/1.398, allocations: 225.7 MB / 252.5 MB, free: 12.84 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.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001841/0.001841, allocations: 51.92 kB / 370.4 MB, free: 9.715 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2423/0.2442, allocations: 52.18 MB / 422.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003734/0.2479, allocations: 2.284 MB / 424.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001512/0.2494, allocations: 0.795 MB / 425.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001529/0.2496, allocations: 11.94 kB / 425.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002657/0.2498, allocations: 55.5 kB / 425.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002201/0.25, allocations: 71.48 kB / 425.8 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005529/0.2506, allocations: 214.4 kB / 426 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004157/0.251, allocations: 387.5 kB / 426.4 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001721/0.2512, allocations: 73.55 kB / 426.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002326/0.2514, allocations: 167.4 kB / 426.6 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00024/0.2517, allocations: 167.2 kB / 426.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.293e-05/0.2517, allocations: 36 kB / 426.8 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.982e-05/0.2518, allocations: 40 kB / 426.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001285/0.2519, allocations: 107.7 kB / 426.9 MB, free: 10 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001367/0.252, allocations: 139.3 kB / 427.1 MB, free: 9.867 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004394/0.2525, allocations: 378.3 kB / 427.4 MB, free: 9.496 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.2525, allocations: 4 kB / 427.4 MB, free: 9.492 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2525, allocations: 0 / 427.4 MB, free: 9.492 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.2525, allocations: 0 / 427.4 MB, free: 9.492 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.001344/0.2538, allocations: 0.6102 MB / 428.1 MB, free: 8.852 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.2539, allocations: 12.03 kB / 428.1 MB, free: 8.84 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.806e-05/0.254, allocations: 74.72 kB / 428.1 MB, free: 8.758 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.527e-05/0.254, allocations: 44.7 kB / 428.2 MB, free: 8.715 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004991/0.2545, allocations: 249.4 kB / 428.4 MB, free: 8.445 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003564/0.2549, allocations: 351.9 kB / 428.8 MB, free: 8.035 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.173e-05/0.255, allocations: 32.38 kB / 428.8 MB, free: 8.004 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001327/0.2563, allocations: 0.5698 MB / 429.4 MB, free: 7.406 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.922e-05/0.2563, allocations: 3.953 kB / 429.4 MB, free: 7.402 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.51e-05/0.2564, allocations: 12 kB / 429.4 MB, free: 7.391 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.2564, allocations: 8 kB / 429.4 MB, free: 7.383 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001537/0.2579, allocations: 0.519 MB / 429.9 MB, free: 6.863 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001609/0.2595, allocations: 0.9023 MB / 430.8 MB, free: 5.898 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001509/0.261, allocations: 474.5 kB / 431.3 MB, free: 5.398 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006817/0.2617, allocations: 243.3 kB / 431.5 MB, free: 5.148 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.83e-05/0.2618, allocations: 11.98 kB / 431.5 MB, free: 5.137 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.889e-05/0.2618, allocations: 38.56 kB / 431.6 MB, free: 5.09 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 2.295e-06/0.2618, allocations: 0 / 431.6 MB, free: 5.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.04135/0.3031, allocations: 5.788 MB / 437.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001326/0.3033, allocations: 148.7 kB / 437.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003492/0.3036, allocations: 269.8 kB / 437.8 MB, free: 14.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.909e-05/0.3037, allocations: 37.7 kB / 437.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.3038, allocations: 145.8 kB / 437.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002291/0.3041, allocations: 206.3 kB / 438.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002982/0.3044, allocations: 122.6 kB / 438.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.3045, allocations: 350.7 kB / 438.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001699/0.3062, allocations: 0.6188 MB / 439.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001829/0.3081, allocations: 0.8043 MB / 440 MB, free: 12.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003269/0.3113, allocations: 1.26 MB / 441.3 MB, free: 11.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/0.3113, allocations: 4 kB / 441.3 MB, free: 11.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003726/0.3151, allocations: 1.403 MB / 442.7 MB, free: 9.715 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.379e-05/0.3151, allocations: 8 kB / 442.7 MB, free: 9.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.3151, allocations: 4 kB / 442.7 MB, free: 9.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.802e-05/0.3151, allocations: 15.98 kB / 442.7 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001312/0.3164, allocations: 219.6 kB / 442.9 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.541e-05/0.3164, allocations: 8 kB / 442.9 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009422/0.3174, allocations: 99.77 kB / 443 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.112e-05/0.3175, allocations: 32 kB / 443.1 MB, free: 9.336 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: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,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 (84): * Single equations (assignments): 84 * 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.0003315/0.3178, allocations: 190 kB / 443.3 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003122/0.3181, allocations: 161.3 kB / 443.4 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001642/0.3183, allocations: 71.61 kB / 443.5 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-05/0.3183, allocations: 12.17 kB / 443.5 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.3183, allocations: 0 / 443.5 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.254e-05/0.3183, allocations: 15.97 kB / 443.5 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004917/0.3232, allocations: 1.983 MB / 445.5 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.415e-05/0.3232, allocations: 12 kB / 445.5 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007469/0.324, allocations: 192.4 kB / 445.7 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.621e-05/0.324, allocations: 12 kB / 445.7 MB, free: 6.508 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.176e-05/0.3241, allocations: 24 kB / 445.7 MB, free: 6.484 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.771e-05/0.3241, allocations: 19.94 kB / 445.8 MB, free: 6.465 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.331e-05/0.3241, allocations: 11.94 kB / 445.8 MB, free: 6.453 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003455/0.3275, allocations: 1.585 MB / 447.3 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002537/0.3278, allocations: 107.7 kB / 447.5 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.429e-05/0.3279, allocations: 24 kB / 447.5 MB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005986/0.3285, allocations: 79.91 kB / 447.6 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001991/0.3287, allocations: 99.64 kB / 447.7 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.163e-05/0.3287, allocations: 28 kB / 447.7 MB, free: 4.383 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002056/0.3289, allocations: 197.2 kB / 447.9 MB, free: 4.191 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3289, allocations: 0 / 447.9 MB, free: 4.191 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006593/0.3296, allocations: 124 kB / 448 MB, free: 4.07 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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.003857/0.3334, allocations: 2.169 MB / 450.2 MB, free: 1.742 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00289/0.3363, allocations: 1.038 MB / 451.2 MB, free: 0.707 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.3363, allocations: 1.375 kB / 451.2 MB, free: 0.707 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001044/0.3374, allocations: 341.8 kB / 451.5 MB, free: 384 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009392/0.3383, allocations: 136.4 kB / 451.7 MB, free: 244 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01389/0.3522, allocations: 6.969 MB / 458.6 MB, free: 8.773 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002669/0.3525, allocations: 224.7 kB / 458.9 MB, free: 8.535 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005175/0.353, allocations: 104.1 kB / 459 MB, free: 8.434 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003777/0.3534, allocations: 115.4 kB / 459.1 MB, free: 8.324 MB / 366.1 MB Notification: Performance of SimCode: time 9.71e-07/0.3534, allocations: 0 / 459.1 MB, free: 8.324 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04393/0.3973, allocations: 13.05 MB / 472.1 MB, free: 11.5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.86/11.26, allocations: 6.688 kB / 472.1 MB, free: 11.5 MB / 382.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.805273739621043]