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.002096/0.002096, 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.00267/0.00267, allocations: 213.1 kB / 23.74 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.522/1.522, allocations: 230.5 MB / 257.4 MB, free: 7.988 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.002348/0.002348, allocations: 67.89 kB / 377.8 MB, free: 3.094 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2795/0.2818, allocations: 53.41 MB / 431.2 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004513/0.2863, allocations: 2.425 MB / 433.6 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002127/0.2885, allocations: 0.8805 MB / 434.5 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003475/0.2888, allocations: 15.88 kB / 434.5 MB, free: 3.363 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003769/0.2892, allocations: 51.56 kB / 434.5 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003993/0.2896, allocations: 63.48 kB / 434.6 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000782/0.2904, allocations: 207 kB / 434.8 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006858/0.2911, allocations: 391.5 kB / 435.2 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002416/0.2913, allocations: 79.86 kB / 435.3 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004997/0.2918, allocations: 183.4 kB / 435.4 MB, free: 2.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004169/0.2922, allocations: 187.2 kB / 435.6 MB, free: 2.227 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.701e-05/0.2923, allocations: 32 kB / 435.7 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.27e-05/0.2924, allocations: 36 kB / 435.7 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001545/0.2925, allocations: 103.7 kB / 435.8 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002132/0.2927, allocations: 167.1 kB / 436 MB, free: 1.895 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005681/0.2933, allocations: 370.7 kB / 436.3 MB, free: 1.535 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2933, allocations: 3.938 kB / 436.3 MB, free: 1.531 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2933, allocations: 4 kB / 436.3 MB, free: 1.527 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.568e-05/0.2933, allocations: 0 / 436.3 MB, free: 1.527 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.001555/0.2949, allocations: 0.6026 MB / 436.9 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.2949, allocations: 8.031 kB / 436.9 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.706e-05/0.295, allocations: 70.72 kB / 437 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.673e-05/0.2951, allocations: 44.7 kB / 437 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006072/0.2957, allocations: 257.3 kB / 437.3 MB, free: 496 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000387/0.2961, allocations: 355.9 kB / 437.6 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.746e-05/0.2962, allocations: 28.38 kB / 437.7 MB, free: 44 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001364/0.2976, allocations: 0.5744 MB / 438.2 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.383e-05/0.2976, allocations: 0 / 438.2 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.815e-05/0.2976, allocations: 12 kB / 438.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.327e-05/0.2976, allocations: 4 kB / 438.3 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001391/0.299, allocations: 0.5113 MB / 438.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001797/0.3008, allocations: 0.9569 MB / 439.7 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001648/0.3025, allocations: 486.5 kB / 440.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006253/0.3031, allocations: 242.9 kB / 440.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.509e-05/0.3032, allocations: 11.94 kB / 440.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.351e-05/0.3032, allocations: 42.5 kB / 440.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.214e-06/0.3032, allocations: 0 / 440.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03724/0.3404, allocations: 5.775 MB / 446.3 MB, free: 7.289 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001327/0.3406, allocations: 148.9 kB / 446.4 MB, free: 7.113 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003286/0.3409, allocations: 257.9 kB / 446.7 MB, free: 6.855 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.935e-05/0.341, allocations: 41.7 kB / 446.7 MB, free: 6.809 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001286/0.3411, allocations: 149.7 kB / 446.9 MB, free: 6.656 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002278/0.3413, allocations: 202.3 kB / 447.1 MB, free: 6.457 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002907/0.3416, allocations: 110.6 kB / 447.2 MB, free: 6.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.3418, allocations: 343.2 kB / 447.5 MB, free: 5.996 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00158/0.3434, allocations: 0.6227 MB / 448.1 MB, free: 5.375 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001751/0.3451, allocations: 0.7963 MB / 448.9 MB, free: 4.504 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003051/0.3482, allocations: 1.251 MB / 450.2 MB, free: 3.172 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/0.3482, allocations: 3.938 kB / 450.2 MB, free: 3.168 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003574/0.3518, allocations: 1.398 MB / 451.6 MB, free: 1.762 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.847e-05/0.3518, allocations: 10.5 kB / 451.6 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.461e-05/0.3518, allocations: 4 kB / 451.6 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.898e-05/0.3518, allocations: 12 kB / 451.6 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001335/0.3532, allocations: 215.7 kB / 451.8 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.358e-05/0.3532, allocations: 11.94 kB / 451.8 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009636/0.3542, allocations: 99.83 kB / 451.9 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.904e-05/0.3542, allocations: 32 kB / 451.9 MB, free: 1.387 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.0003603/0.3546, allocations: 189.6 kB / 452.1 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003613/0.355, allocations: 165.2 kB / 452.3 MB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002118/0.3552, allocations: 71.61 kB / 452.4 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.01e-05/0.3552, allocations: 11.94 kB / 452.4 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.265e-06/0.3552, allocations: 0 / 452.4 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.3552, allocations: 3.984 kB / 452.4 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005146/0.3603, allocations: 2.151 MB / 454.5 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.416e-05/0.3604, allocations: 8 kB / 454.5 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008206/0.3612, allocations: 187.8 kB / 454.7 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.569e-05/0.3612, allocations: 16 kB / 454.7 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.871e-05/0.3613, allocations: 28 kB / 454.8 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.307e-05/0.3613, allocations: 19.92 kB / 454.8 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.29e-05/0.3613, allocations: 15.94 kB / 454.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003424/0.3647, allocations: 1.557 MB / 456.4 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002933/0.365, allocations: 107.6 kB / 456.5 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001052/0.3651, allocations: 31.98 kB / 456.5 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006183/0.3658, allocations: 79.97 kB / 456.6 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002178/0.366, allocations: 99.83 kB / 456.7 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.796e-05/0.366, allocations: 31.98 kB / 456.7 MB, free: 12.29 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002267/0.3663, allocations: 189.1 kB / 456.9 MB, free: 12.1 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3663, allocations: 0 / 456.9 MB, free: 12.1 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007417/0.367, allocations: 127.9 kB / 457 MB, free: 11.98 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.003843/0.3709, allocations: 2.133 MB / 459.1 MB, free: 9.691 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003017/0.3739, allocations: 1.029 MB / 460.2 MB, free: 8.656 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.739e-06/0.3739, allocations: 1.375 kB / 460.2 MB, free: 8.656 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001041/0.3749, allocations: 337.8 kB / 460.5 MB, free: 8.328 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001204/0.3761, allocations: 135.8 kB / 460.6 MB, free: 8.195 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01499/0.3911, allocations: 6.914 MB / 467.6 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008138/0.3919, allocations: 0.8362 MB / 468.4 MB, free: 15.92 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005981/0.3925, allocations: 96.11 kB / 468.5 MB, free: 15.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004755/0.393, allocations: 119.4 kB / 468.6 MB, free: 15.71 MB / 382.1 MB Notification: Performance of SimCode: time 2.004e-06/0.393, allocations: 3.938 kB / 468.6 MB, free: 15.7 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05358/0.4466, allocations: 12.37 MB / 481 MB, free: 3.441 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.73, allocations: 7.438 kB / 481 MB, free: 3.438 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 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.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_trunk_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: 14.478898794855922]