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.001397/0.001397, allocations: 114 kB / 20.44 MB, free: 1.469 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.001614/0.001614, allocations: 214 kB / 23.74 MB, free: 4.695 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.565/1.565, allocations: 230.5 MB / 257.4 MB, free: 8.023 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.001939/0.001939, allocations: 67.88 kB / 377.8 MB, free: 3.035 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2798/0.2818, allocations: 53.41 MB / 431.2 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004759/0.2865, allocations: 2.354 MB / 433.5 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001836/0.2883, allocations: 0.8222 MB / 434.4 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002473/0.2886, allocations: 11.88 kB / 434.4 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003129/0.2889, allocations: 51.58 kB / 434.4 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002741/0.2892, allocations: 59.56 kB / 434.5 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006668/0.2898, allocations: 175.6 kB / 434.6 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005729/0.2904, allocations: 379.5 kB / 435 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000212/0.2906, allocations: 71.59 kB / 435.1 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004006/0.291, allocations: 171.5 kB / 435.2 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003534/0.2914, allocations: 183.2 kB / 435.4 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.71e-05/0.2915, allocations: 32 kB / 435.5 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.687e-05/0.2915, allocations: 32 kB / 435.5 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001327/0.2917, allocations: 95.72 kB / 435.6 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001702/0.2918, allocations: 139.3 kB / 435.7 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000458/0.2923, allocations: 324.5 kB / 436 MB, free: 1.824 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2923, allocations: 0 / 436 MB, free: 1.824 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2923, allocations: 0 / 436 MB, free: 1.824 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.058e-05/0.2923, allocations: 0 / 436 MB, free: 1.824 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.001344/0.2937, allocations: 0.5483 MB / 436.6 MB, free: 1.246 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.2937, allocations: 12.03 kB / 436.6 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.908e-05/0.2938, allocations: 66.73 kB / 436.7 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.59e-05/0.2939, allocations: 36.75 kB / 436.7 MB, free: 1.125 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004162/0.2943, allocations: 217.5 kB / 436.9 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003233/0.2946, allocations: 347.9 kB / 437.3 MB, free: 492 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.585e-05/0.2947, allocations: 32.33 kB / 437.3 MB, free: 460 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001207/0.2959, allocations: 0.5504 MB / 437.8 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.192e-05/0.2959, allocations: 0 / 437.8 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.474e-05/0.2959, allocations: 12 kB / 437.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.2959, allocations: 8 kB / 437.9 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001322/0.2973, allocations: 0.4996 MB / 438.4 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001639/0.2989, allocations: 0.9567 MB / 439.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001555/0.3005, allocations: 486.5 kB / 439.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005865/0.3011, allocations: 238.9 kB / 440 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.147e-05/0.3011, allocations: 12.08 kB / 440 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.341e-05/0.3011, allocations: 46.55 kB / 440.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.714e-06/0.3011, allocations: 0 / 440.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03765/0.3388, allocations: 5.717 MB / 445.8 MB, free: 7.781 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001328/0.3389, allocations: 149.3 kB / 445.9 MB, free: 7.605 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002424/0.3392, allocations: 187.5 kB / 446.1 MB, free: 7.414 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.284e-05/0.3393, allocations: 37.7 kB / 446.2 MB, free: 7.371 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.3394, allocations: 145.7 kB / 446.3 MB, free: 7.223 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002246/0.3396, allocations: 202.3 kB / 446.5 MB, free: 7.023 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002794/0.3399, allocations: 114.6 kB / 446.6 MB, free: 6.906 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.34, allocations: 342.8 kB / 446.9 MB, free: 6.562 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001577/0.3416, allocations: 0.6149 MB / 447.6 MB, free: 5.945 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001742/0.3434, allocations: 0.8002 MB / 448.4 MB, free: 5.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003079/0.3464, allocations: 1.252 MB / 449.6 MB, free: 3.742 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.074e-05/0.3465, allocations: 7.938 kB / 449.6 MB, free: 3.734 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003511/0.35, allocations: 1.398 MB / 451 MB, free: 2.328 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/0.35, allocations: 4 kB / 451 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/0.35, allocations: 8 kB / 451 MB, free: 2.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.557e-05/0.35, allocations: 8 kB / 451 MB, free: 2.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001323/0.3514, allocations: 203.7 kB / 451.2 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.224e-05/0.3514, allocations: 19.92 kB / 451.3 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009366/0.3523, allocations: 111.8 kB / 451.4 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.708e-05/0.3524, allocations: 24 kB / 451.4 MB, free: 1.957 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.0003373/0.3527, allocations: 189.5 kB / 451.6 MB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003105/0.353, allocations: 149.4 kB / 451.7 MB, free: 1.609 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001854/0.3532, allocations: 59.31 kB / 451.8 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.148e-05/0.3532, allocations: 8 kB / 451.8 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/0.3532, allocations: 11.98 kB / 451.8 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.3533, allocations: 3.938 kB / 451.8 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004892/0.3581, allocations: 2.136 MB / 453.9 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.418e-05/0.3582, allocations: 12 kB / 453.9 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007498/0.3589, allocations: 183.7 kB / 454.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-05/0.3589, allocations: 12.62 kB / 454.1 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.194e-05/0.359, allocations: 35.94 kB / 454.2 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.251e-05/0.359, allocations: 23.92 kB / 454.2 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.068e-05/0.359, allocations: 11.94 kB / 454.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003206/0.3622, allocations: 1.549 MB / 455.8 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001969/0.3624, allocations: 91.69 kB / 455.8 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.241e-05/0.3625, allocations: 31.94 kB / 455.9 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005566/0.363, allocations: 75.91 kB / 456 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001944/0.3632, allocations: 95.7 kB / 456 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.751e-05/0.3633, allocations: 31.94 kB / 456.1 MB, free: 12.92 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001551/0.3634, allocations: 147.5 kB / 456.2 MB, free: 12.78 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3634, allocations: 4 kB / 456.2 MB, free: 12.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006406/0.3641, allocations: 124 kB / 456.3 MB, free: 12.65 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.0035/0.3676, allocations: 2.121 MB / 458.5 MB, free: 10.37 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002729/0.3703, allocations: 1.026 MB / 459.5 MB, free: 9.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.788e-06/0.3703, allocations: 0 / 459.5 MB, free: 9.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009487/0.3713, allocations: 334.4 kB / 459.8 MB, free: 9.016 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008933/0.3722, allocations: 131.6 kB / 459.9 MB, free: 8.887 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01337/0.3855, allocations: 6.784 MB / 466.7 MB, free: 1.609 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000619/0.3861, allocations: 0.8089 MB / 467.5 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004677/0.3866, allocations: 95.31 kB / 467.6 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003986/0.387, allocations: 123.4 kB / 467.8 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of SimCode: time 7.42e-07/0.387, allocations: 0 / 467.8 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04733/0.4343, allocations: 11.95 MB / 479.7 MB, free: 4.715 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.79, allocations: 19.42 kB / 479.7 MB, free: 4.699 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: 14.587597644189373]