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.001321/0.001321, allocations: 112.2 kB / 20.43 MB, free: 1.449 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.001448/0.001448, allocations: 189.9 kB / 23.72 MB, free: 4.684 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.544/1.544, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.001727/0.001727, allocations: 47.92 kB / 370.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3049/0.3066, allocations: 52.19 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004595/0.3112, allocations: 2.42 MB / 425 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001966/0.3132, allocations: 0.8299 MB / 425.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002755/0.3135, allocations: 15.88 kB / 425.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003548/0.3138, allocations: 59.56 kB / 425.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002751/0.3141, allocations: 67.48 kB / 426 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000687/0.3148, allocations: 191.6 kB / 426.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000517/0.3153, allocations: 399.5 kB / 426.6 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002275/0.3155, allocations: 73.55 kB / 426.6 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002727/0.3158, allocations: 179.4 kB / 426.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002944/0.3161, allocations: 183.2 kB / 427 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.029e-05/0.3162, allocations: 35.94 kB / 427 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.849e-05/0.3162, allocations: 36 kB / 427.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001359/0.3164, allocations: 107.7 kB / 427.2 MB, free: 10 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001717/0.3165, allocations: 163.1 kB / 427.3 MB, free: 9.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005122/0.317, allocations: 378.3 kB / 427.7 MB, free: 9.469 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.317, allocations: 3.938 kB / 427.7 MB, free: 9.465 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.577e-06/0.3171, allocations: 4 kB / 427.7 MB, free: 9.461 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.334e-06/0.3171, allocations: 4 kB / 427.7 MB, free: 9.457 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.00133/0.3184, allocations: 0.6025 MB / 428.3 MB, free: 8.824 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.3184, allocations: 8.031 kB / 428.3 MB, free: 8.816 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.286e-05/0.3185, allocations: 70.73 kB / 428.4 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.411e-05/0.3186, allocations: 44.7 kB / 428.4 MB, free: 8.695 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005051/0.3191, allocations: 245.4 kB / 428.7 MB, free: 8.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003533/0.3195, allocations: 355.9 kB / 429 MB, free: 8.016 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.333e-05/0.3195, allocations: 28.38 kB / 429.1 MB, free: 7.988 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001217/0.3207, allocations: 0.5659 MB / 429.6 MB, free: 7.395 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.894e-05/0.3208, allocations: 11.83 kB / 429.6 MB, free: 7.383 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.938e-05/0.3208, allocations: 15.98 kB / 429.6 MB, free: 7.367 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.212e-05/0.3208, allocations: 8 kB / 429.7 MB, free: 7.359 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00139/0.3222, allocations: 0.5074 MB / 430.2 MB, free: 6.852 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001899/0.3241, allocations: 0.9568 MB / 431.1 MB, free: 5.832 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001621/0.3257, allocations: 490 kB / 431.6 MB, free: 5.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006187/0.3263, allocations: 231.4 kB / 431.8 MB, free: 5.082 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.814e-05/0.3264, allocations: 16.14 kB / 431.8 MB, free: 5.066 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.96e-05/0.3264, allocations: 46.48 kB / 431.9 MB, free: 5.012 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 3.386e-06/0.3264, allocations: 0 / 431.9 MB, free: 5.012 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03833/0.3648, allocations: 5.772 MB / 437.7 MB, free: 15.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001571/0.3649, allocations: 144.9 kB / 437.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003504/0.3653, allocations: 261.8 kB / 438.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.123e-05/0.3654, allocations: 41.7 kB / 438.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.3655, allocations: 149.7 kB / 438.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002201/0.3657, allocations: 202.3 kB / 438.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002988/0.366, allocations: 118.6 kB / 438.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.3662, allocations: 347.2 kB / 438.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001596/0.3678, allocations: 0.6149 MB / 439.5 MB, free: 13.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001792/0.3696, allocations: 0.7963 MB / 440.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003167/0.3727, allocations: 1.247 MB / 441.6 MB, free: 11.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.708e-06/0.3728, allocations: 3.938 kB / 441.6 MB, free: 11.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003715/0.3765, allocations: 1.402 MB / 443 MB, free: 9.688 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.524e-05/0.3765, allocations: 10.34 kB / 443 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/0.3765, allocations: 8 kB / 443 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.078e-05/0.3766, allocations: 8 kB / 443 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001384/0.3779, allocations: 211.7 kB / 443.2 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.218e-05/0.378, allocations: 15.92 kB / 443.2 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009608/0.3789, allocations: 99.84 kB / 443.3 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.188e-05/0.379, allocations: 24 kB / 443.3 MB, free: 9.32 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.0003649/0.3794, allocations: 193.6 kB / 443.5 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003521/0.3797, allocations: 161.3 kB / 443.7 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001924/0.3799, allocations: 67.61 kB / 443.7 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-06/0.3799, allocations: 8 kB / 443.7 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.3799, allocations: 0 / 443.7 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.053e-05/0.3799, allocations: 7.922 kB / 443.8 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005239/0.3852, allocations: 2.156 MB / 445.9 MB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.838e-05/0.3852, allocations: 11.98 kB / 445.9 MB, free: 6.531 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007683/0.386, allocations: 183.7 kB / 446.1 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-05/0.386, allocations: 16 kB / 446.1 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.489e-05/0.386, allocations: 24 kB / 446.1 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.115e-05/0.3861, allocations: 19.92 kB / 446.2 MB, free: 6.293 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-05/0.3861, allocations: 15.94 kB / 446.2 MB, free: 6.277 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003283/0.3894, allocations: 1.569 MB / 447.7 MB, free: 4.555 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000294/0.3897, allocations: 107.6 kB / 447.9 MB, free: 4.449 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.434e-05/0.3897, allocations: 24 kB / 447.9 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000574/0.3903, allocations: 83.91 kB / 448 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002084/0.3905, allocations: 99.83 kB / 448.1 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.5e-05/0.3906, allocations: 28 kB / 448.1 MB, free: 4.219 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002056/0.3908, allocations: 189.1 kB / 448.3 MB, free: 4.035 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3908, allocations: 0 / 448.3 MB, free: 4.035 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006878/0.3915, allocations: 127.9 kB / 448.4 MB, free: 3.91 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: 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.003752/0.3952, allocations: 2.137 MB / 450.5 MB, free: 1.621 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003084/0.3983, allocations: 1.022 MB / 451.6 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.224e-05/0.3983, allocations: 0 / 451.6 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001083/0.3994, allocations: 335.2 kB / 451.9 MB, free: 280 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001131/0.4005, allocations: 156 kB / 452 MB, free: 128 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01508/0.4156, allocations: 6.919 MB / 458.9 MB, free: 8.711 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006115/0.4162, allocations: 0.8284 MB / 459.8 MB, free: 7.859 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005671/0.4168, allocations: 100.1 kB / 459.9 MB, free: 7.758 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00042/0.4172, allocations: 119.3 kB / 460 MB, free: 7.641 MB / 366.1 MB Notification: Performance of SimCode: time 1.352e-06/0.4172, allocations: 0 / 460 MB, free: 7.641 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0573/0.4745, allocations: 12.38 MB / 472.4 MB, free: 11.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/12.19, allocations: 2.406 kB / 472.4 MB, free: 11.41 MB / 382.1 MB " [Timeout remaining time 648] (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: 15.00295332702808]