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.001684/0.001684, allocations: 107.1 kB / 20.44 MB, free: 1.324 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.002077/0.002077, allocations: 206.7 kB / 23.72 MB, free: 4.492 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.465/1.465, allocations: 230.5 MB / 257.4 MB, free: 7.766 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.001961/0.001961, allocations: 67.89 kB / 377.7 MB, free: 2.801 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2657/0.2677, allocations: 53.4 MB / 431.1 MB, free: 6.438 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003884/0.2716, allocations: 2.3 MB / 433.4 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001579/0.2732, allocations: 0.8222 MB / 434.2 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001706/0.2733, allocations: 7.938 kB / 434.3 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002923/0.2736, allocations: 63.48 kB / 434.3 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002252/0.2739, allocations: 67.48 kB / 434.4 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006374/0.2745, allocations: 207.5 kB / 434.6 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004465/0.2749, allocations: 391.5 kB / 435 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001759/0.2751, allocations: 73.47 kB / 435 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003125/0.2754, allocations: 183.3 kB / 435.2 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002394/0.2757, allocations: 163.3 kB / 435.4 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.204e-05/0.2757, allocations: 39.94 kB / 435.4 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.156e-05/0.2758, allocations: 36 kB / 435.5 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001206/0.2759, allocations: 107.7 kB / 435.6 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001521/0.2761, allocations: 143.3 kB / 435.7 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004374/0.2765, allocations: 378.3 kB / 436.1 MB, free: 1.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.2765, allocations: 4 kB / 436.1 MB, free: 1.477 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2765, allocations: 0 / 436.1 MB, free: 1.477 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.2765, allocations: 0 / 436.1 MB, free: 1.477 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.001231/0.2777, allocations: 0.6064 MB / 436.7 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.2778, allocations: 11.98 kB / 436.7 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.987e-05/0.2779, allocations: 74.72 kB / 436.8 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.665e-05/0.2779, allocations: 44.7 kB / 436.8 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004116/0.2784, allocations: 253.3 kB / 437.1 MB, free: 436 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003132/0.2787, allocations: 347.9 kB / 437.4 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.703e-05/0.2787, allocations: 32.42 kB / 437.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00123/0.28, allocations: 0.5743 MB / 438 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.902e-05/0.28, allocations: 4 kB / 438 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.094e-05/0.28, allocations: 8 kB / 438 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.28, allocations: 8 kB / 438 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001454/0.2815, allocations: 0.5217 MB / 438.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001541/0.283, allocations: 0.8947 MB / 439.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001467/0.2845, allocations: 478.5 kB / 439.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006726/0.2852, allocations: 246.8 kB / 440.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.207e-05/0.2852, allocations: 4 kB / 440.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.078e-05/0.2852, allocations: 46.41 kB / 440.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.144e-06/0.2853, allocations: 0 / 440.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.0377/0.323, allocations: 5.777 MB / 446 MB, free: 7.289 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000127/0.3231, allocations: 153.3 kB / 446.1 MB, free: 7.109 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003007/0.3234, allocations: 273.8 kB / 446.4 MB, free: 6.836 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.615e-05/0.3235, allocations: 41.64 kB / 446.4 MB, free: 6.789 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.3236, allocations: 149.7 kB / 446.6 MB, free: 6.637 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000202/0.3238, allocations: 202.3 kB / 446.8 MB, free: 6.438 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002754/0.324, allocations: 118.6 kB / 446.9 MB, free: 6.312 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.3242, allocations: 346.8 kB / 447.2 MB, free: 5.965 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001665/0.3259, allocations: 0.6226 MB / 447.8 MB, free: 5.344 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00179/0.3277, allocations: 0.8004 MB / 448.6 MB, free: 4.469 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003198/0.3309, allocations: 1.26 MB / 449.9 MB, free: 3.129 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.3309, allocations: 8 kB / 449.9 MB, free: 3.121 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003643/0.3345, allocations: 1.407 MB / 451.3 MB, free: 1.707 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/0.3345, allocations: 8 kB / 451.3 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.3345, allocations: 4 kB / 451.3 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.372e-05/0.3346, allocations: 16 kB / 451.4 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001298/0.3359, allocations: 211.6 kB / 451.6 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.66e-05/0.3359, allocations: 15.97 kB / 451.6 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000972/0.3369, allocations: 107.8 kB / 451.7 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.759e-05/0.3369, allocations: 24 kB / 451.7 MB, free: 1.328 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.000315/0.3372, allocations: 189.6 kB / 451.9 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003111/0.3376, allocations: 169.3 kB / 452.1 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001705/0.3377, allocations: 67.61 kB / 452.1 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.989e-06/0.3377, allocations: 12 kB / 452.1 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/0.3377, allocations: 3.938 kB / 452.1 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.3378, allocations: 7.984 kB / 452.1 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00488/0.3426, allocations: 1.976 MB / 454.1 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.507e-05/0.3426, allocations: 12 kB / 454.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000746/0.3434, allocations: 184.2 kB / 454.3 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.292e-05/0.3434, allocations: 16.12 kB / 454.3 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.465e-05/0.3435, allocations: 31.98 kB / 454.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-05/0.3435, allocations: 23.88 kB / 454.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.387e-05/0.3435, allocations: 15.94 kB / 454.4 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003373/0.3469, allocations: 1.577 MB / 456 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002681/0.3471, allocations: 107.6 kB / 456.1 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.135e-05/0.3472, allocations: 23.98 kB / 456.1 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006002/0.3478, allocations: 83.97 kB / 456.2 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002084/0.348, allocations: 99.64 kB / 456.3 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.942e-05/0.3481, allocations: 28 kB / 456.3 MB, free: 12.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002025/0.3483, allocations: 197.2 kB / 456.5 MB, free: 12.18 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3483, allocations: 0 / 456.5 MB, free: 12.18 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006494/0.3489, allocations: 120 kB / 456.6 MB, free: 12.06 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: 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.003822/0.3527, allocations: 2.161 MB / 458.8 MB, free: 9.742 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002911/0.3557, allocations: 1.041 MB / 459.8 MB, free: 8.699 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.987e-06/0.3557, allocations: 0 / 459.8 MB, free: 8.699 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001064/0.3567, allocations: 343.2 kB / 460.2 MB, free: 8.367 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009949/0.3577, allocations: 149.7 kB / 460.3 MB, free: 8.223 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01457/0.3723, allocations: 6.948 MB / 467.2 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003285/0.3726, allocations: 232.6 kB / 467.5 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005635/0.3732, allocations: 100.1 kB / 467.6 MB, free: 440 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003918/0.3736, allocations: 123.4 kB / 467.7 MB, free: 320 kB / 366.1 MB Notification: Performance of SimCode: time 1.372e-06/0.3736, allocations: 0 / 467.7 MB, free: 320 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04212/0.4157, allocations: 13.04 MB / 480.7 MB, free: 3.445 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.81, allocations: 7.203 kB / 480.7 MB, free: 3.441 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.513972445391119]