Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.001636/0.001636, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.002102/0.002102, allocations: 203.7 kB / 23.72 MB, free: 4.391 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.549/1.549, 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.SuperSampled,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 63.91 kB / 377.7 MB, free: 2.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2888/0.2907, allocations: 53.4 MB / 431.1 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003728/0.2944, allocations: 2.238 MB / 433.4 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001461/0.2959, allocations: 0.7677 MB / 434.1 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000139/0.296, allocations: 7.938 kB / 434.1 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002724/0.2963, allocations: 55.56 kB / 434.2 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001941/0.2965, allocations: 59.55 kB / 434.2 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005193/0.297, allocations: 175.6 kB / 434.4 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004087/0.2974, allocations: 379.5 kB / 434.8 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001606/0.2976, allocations: 63.61 kB / 434.9 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002947/0.2979, allocations: 167.5 kB / 435 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000231/0.2981, allocations: 155.4 kB / 435.2 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.585e-05/0.2982, allocations: 32 kB / 435.2 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.277e-05/0.2983, allocations: 36 kB / 435.2 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001232/0.2984, allocations: 107.6 kB / 435.3 MB, free: 2.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001552/0.2985, allocations: 123.4 kB / 435.5 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000467/0.299, allocations: 332.5 kB / 435.8 MB, free: 1.785 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.299, allocations: 4 kB / 435.8 MB, free: 1.781 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.299, allocations: 0 / 435.8 MB, free: 1.781 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.299, allocations: 0 / 435.8 MB, free: 1.781 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001336/0.3003, allocations: 0.5405 MB / 436.3 MB, free: 1.211 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.3004, allocations: 11.98 kB / 436.3 MB, free: 1.199 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.957e-05/0.3005, allocations: 74.72 kB / 436.4 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.047e-05/0.3006, allocations: 36.75 kB / 436.5 MB, free: 1.082 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004046/0.301, allocations: 217.6 kB / 436.7 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003241/0.3013, allocations: 347.9 kB / 437 MB, free: 448 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.758e-05/0.3014, allocations: 32.33 kB / 437 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001258/0.3026, allocations: 0.5542 MB / 437.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.3026, allocations: 0 / 437.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.662e-05/0.3027, allocations: 12 kB / 437.6 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.547e-06/0.3027, allocations: 4 kB / 437.6 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001498/0.3042, allocations: 0.5074 MB / 438.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001693/0.3059, allocations: 0.9062 MB / 439 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00155/0.3074, allocations: 462.6 kB / 439.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007044/0.3081, allocations: 247.4 kB / 439.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.636e-05/0.3082, allocations: 11.94 kB / 439.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.093e-05/0.3082, allocations: 46.48 kB / 439.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.815e-06/0.3082, allocations: 0 / 439.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.03782/0.346, allocations: 5.749 MB / 445.5 MB, free: 7.758 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00014/0.3462, allocations: 148.9 kB / 445.7 MB, free: 7.582 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002509/0.3464, allocations: 198.7 kB / 445.9 MB, free: 7.379 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.097e-05/0.3465, allocations: 33.7 kB / 445.9 MB, free: 7.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/0.3466, allocations: 145.8 kB / 446 MB, free: 7.191 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002309/0.3469, allocations: 206.3 kB / 446.2 MB, free: 6.988 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002935/0.3472, allocations: 110.7 kB / 446.3 MB, free: 6.875 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.3473, allocations: 346.8 kB / 446.7 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001698/0.349, allocations: 0.6149 MB / 447.3 MB, free: 5.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00184/0.3509, allocations: 0.8042 MB / 448.1 MB, free: 5.031 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003261/0.3541, allocations: 1.26 MB / 449.4 MB, free: 3.695 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.762e-06/0.3541, allocations: 4 kB / 449.4 MB, free: 3.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.00382/0.3579, allocations: 1.411 MB / 450.8 MB, free: 2.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.17e-05/0.358, allocations: 12.03 kB / 450.8 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.469e-05/0.358, allocations: 4 kB / 450.8 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.592e-05/0.358, allocations: 11.94 kB / 450.8 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001319/0.3593, allocations: 207.7 kB / 451 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.125e-05/0.3594, allocations: 11.94 kB / 451 MB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009584/0.3603, allocations: 107.8 kB / 451.1 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.066e-05/0.3604, allocations: 28 kB / 451.1 MB, free: 1.895 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.0003182/0.3607, allocations: 186.2 kB / 451.3 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003047/0.361, allocations: 153.8 kB / 451.5 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001623/0.3612, allocations: 59.39 kB / 451.5 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.121e-05/0.3612, allocations: 15.88 kB / 451.6 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.3612, allocations: 0 / 451.6 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/0.3612, allocations: 8.219 kB / 451.6 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005038/0.3663, allocations: 1.968 MB / 453.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.767e-05/0.3663, allocations: 11.94 kB / 453.5 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007762/0.3671, allocations: 183.7 kB / 453.7 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-05/0.3671, allocations: 15.94 kB / 453.7 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.6e-05/0.3671, allocations: 27.94 kB / 453.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.99e-05/0.3671, allocations: 19.92 kB / 453.8 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-05/0.3672, allocations: 16.12 kB / 453.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003527/0.3707, allocations: 1.581 MB / 455.4 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002448/0.3709, allocations: 83.69 kB / 455.5 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.373e-05/0.371, allocations: 31.98 kB / 455.5 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006125/0.3716, allocations: 75.98 kB / 455.6 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002282/0.3719, allocations: 103.6 kB / 455.7 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.307e-05/0.3719, allocations: 35.94 kB / 455.7 MB, free: 13 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001601/0.3721, allocations: 144.3 kB / 455.8 MB, free: 12.86 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3721, allocations: 0 / 455.8 MB, free: 12.86 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000673/0.3727, allocations: 124 kB / 456 MB, free: 12.73 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.003802/0.3765, allocations: 2.141 MB / 458.1 MB, free: 10.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002958/0.3795, allocations: 1.042 MB / 459.1 MB, free: 9.391 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.036e-05/0.3795, allocations: 3.938 kB / 459.2 MB, free: 9.387 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001075/0.3806, allocations: 342.5 kB / 459.5 MB, free: 9.055 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009251/0.3815, allocations: 127.7 kB / 459.6 MB, free: 8.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01439/0.3959, allocations: 6.835 MB / 466.4 MB, free: 1.598 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003362/0.3962, allocations: 211.3 kB / 466.7 MB, free: 1.367 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005275/0.3968, allocations: 95.3 kB / 466.7 MB, free: 1.273 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003898/0.3972, allocations: 111.4 kB / 466.9 MB, free: 1.168 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3972, allocations: 0 / 466.9 MB, free: 1.168 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04578/0.4429, allocations: 12.57 MB / 479.4 MB, free: 4.754 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/12.35, allocations: 6.797 kB / 479.4 MB, free: 4.75 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.155154983047396]