Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00125/0.00125, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001413/0.001413, allocations: 215.3 kB / 23.73 MB, free: 4.531 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.383/1.383, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 55.89 kB / 377.7 MB, free: 3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2322/0.2337, allocations: 53.37 MB / 431.1 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003781/0.2375, allocations: 2.293 MB / 433.4 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00153/0.239, allocations: 0.8299 MB / 434.2 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000163/0.2392, allocations: 11.94 kB / 434.2 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003062/0.2395, allocations: 59.55 kB / 434.3 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002258/0.2397, allocations: 67.5 kB / 434.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000586/0.2403, allocations: 202.5 kB / 434.5 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004784/0.2408, allocations: 399.4 kB / 434.9 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001893/0.241, allocations: 73.55 kB / 435 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003145/0.2413, allocations: 179.4 kB / 435.2 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002616/0.2415, allocations: 191.2 kB / 435.3 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.342e-05/0.2416, allocations: 36 kB / 435.4 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.165e-05/0.2417, allocations: 32 kB / 435.4 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001321/0.2418, allocations: 115.6 kB / 435.5 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001442/0.2419, allocations: 131.3 kB / 435.7 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004495/0.2424, allocations: 378.3 kB / 436 MB, free: 1.703 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2424, allocations: 0 / 436 MB, free: 1.703 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2424, allocations: 3.938 kB / 436 MB, free: 1.699 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.2424, allocations: 0 / 436 MB, free: 1.699 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.001346/0.2437, allocations: 0.6103 MB / 436.6 MB, free: 1.055 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.2438, allocations: 8.031 kB / 436.6 MB, free: 1.047 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.358e-05/0.2439, allocations: 74.73 kB / 436.7 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.968e-05/0.2439, allocations: 44.7 kB / 436.8 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004547/0.2444, allocations: 253.4 kB / 437 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003069/0.2447, allocations: 347.9 kB / 437.3 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.395e-05/0.2448, allocations: 28.38 kB / 437.4 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001245/0.246, allocations: 0.5776 MB / 438 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.246, allocations: 0 / 438 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.316e-05/0.2461, allocations: 12 kB / 438 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.2461, allocations: 8 kB / 438 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001385/0.2475, allocations: 0.5139 MB / 438.5 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001535/0.249, allocations: 0.9063 MB / 439.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001442/0.2504, allocations: 470.5 kB / 439.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006441/0.2511, allocations: 243.8 kB / 440.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.629e-05/0.2511, allocations: 7.984 kB / 440.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.711e-05/0.2512, allocations: 50.36 kB / 440.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.843e-06/0.2512, allocations: 8 kB / 440.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.04068/0.2919, allocations: 5.781 MB / 445.9 MB, free: 7.496 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001432/0.292, allocations: 156.8 kB / 446.1 MB, free: 7.312 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003441/0.2923, allocations: 269.8 kB / 446.4 MB, free: 7.043 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.64e-05/0.2924, allocations: 33.7 kB / 446.4 MB, free: 7.004 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.2926, allocations: 153.7 kB / 446.5 MB, free: 6.848 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002327/0.2928, allocations: 202.3 kB / 446.7 MB, free: 6.648 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003183/0.2931, allocations: 118.6 kB / 446.9 MB, free: 6.523 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.2933, allocations: 346.8 kB / 447.2 MB, free: 6.176 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001603/0.2949, allocations: 0.6269 MB / 447.8 MB, free: 5.551 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001689/0.2966, allocations: 0.8042 MB / 448.6 MB, free: 4.672 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003041/0.2996, allocations: 1.256 MB / 449.9 MB, free: 3.336 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.2996, allocations: 0 / 449.9 MB, free: 3.336 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003525/0.3032, allocations: 1.419 MB / 451.3 MB, free: 1.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/0.3032, allocations: 4 kB / 451.3 MB, free: 1.906 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/0.3032, allocations: 8 kB / 451.3 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.439e-05/0.3032, allocations: 8 kB / 451.3 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001357/0.3046, allocations: 207.8 kB / 451.5 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.19e-05/0.3046, allocations: 19.88 kB / 451.5 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009706/0.3056, allocations: 103.8 kB / 451.6 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.256e-05/0.3056, allocations: 24 kB / 451.7 MB, free: 1.543 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.0003578/0.306, allocations: 197.6 kB / 451.9 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003203/0.3063, allocations: 161.3 kB / 452 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001773/0.3065, allocations: 67.61 kB / 452.1 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.3065, allocations: 8 kB / 452.1 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/0.3065, allocations: 7.938 kB / 452.1 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.3065, allocations: 3.984 kB / 452.1 MB, free: 1.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004712/0.3112, allocations: 1.98 MB / 454.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.134e-05/0.3112, allocations: 8 kB / 454.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007459/0.312, allocations: 183.8 kB / 454.3 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.861e-05/0.312, allocations: 19.94 kB / 454.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.377e-05/0.3121, allocations: 24 kB / 454.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.006e-05/0.3121, allocations: 23.86 kB / 454.3 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.121e-05/0.3121, allocations: 15.94 kB / 454.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003155/0.3153, allocations: 1.577 MB / 455.9 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002621/0.3155, allocations: 107.8 kB / 456 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.409e-05/0.3156, allocations: 31.98 kB / 456.1 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005958/0.3162, allocations: 75.86 kB / 456.1 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002095/0.3164, allocations: 99.64 kB / 456.2 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.84e-05/0.3165, allocations: 35.98 kB / 456.3 MB, free: 12.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002021/0.3167, allocations: 189.3 kB / 456.5 MB, free: 12.4 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3167, allocations: 3.938 kB / 456.5 MB, free: 12.4 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006784/0.3173, allocations: 127.9 kB / 456.6 MB, free: 12.27 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.003543/0.3209, allocations: 2.165 MB / 458.7 MB, free: 9.949 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00272/0.3236, allocations: 1.038 MB / 459.8 MB, free: 8.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.899e-06/0.3236, allocations: 4.438 kB / 459.8 MB, free: 8.906 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009674/0.3246, allocations: 345.8 kB / 460.1 MB, free: 8.57 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009284/0.3255, allocations: 145 kB / 460.3 MB, free: 8.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01312/0.3386, allocations: 6.953 MB / 467.2 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002676/0.3389, allocations: 228.6 kB / 467.4 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005118/0.3394, allocations: 100.1 kB / 467.5 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003766/0.3398, allocations: 123.4 kB / 467.7 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3398, allocations: 0 / 467.7 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0434/0.3832, allocations: 13.22 MB / 480.9 MB, free: 3.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.75/11.13, allocations: 15.73 kB / 480.9 MB, free: 3.504 MB / 382.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/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_4.1.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.616067616007058]