Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.001329/0.001329, 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.001378/0.001378, allocations: 213.2 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.416/1.416, allocations: 230.5 MB / 257.4 MB, free: 8.004 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.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 67.88 kB / 377.8 MB, free: 3.094 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2882/0.2902, allocations: 53.4 MB / 431.2 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003948/0.2941, allocations: 2.187 MB / 433.3 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00124/0.2953, allocations: 0.6976 MB / 434 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.979e-05/0.2954, allocations: 7.938 kB / 434.1 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002351/0.2957, allocations: 43.64 kB / 434.1 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001291/0.2958, allocations: 47.62 kB / 434.1 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003191/0.2961, allocations: 131.8 kB / 434.3 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003903/0.2965, allocations: 339.2 kB / 434.6 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001524/0.2967, allocations: 56.45 kB / 434.7 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002809/0.2969, allocations: 155.5 kB / 434.8 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002377/0.2972, allocations: 155.4 kB / 435 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.468e-05/0.2972, allocations: 32 kB / 435 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.725e-05/0.2973, allocations: 32 kB / 435 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.37e-05/0.2974, allocations: 79.8 kB / 435.1 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001219/0.2975, allocations: 127.4 kB / 435.2 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003408/0.2978, allocations: 291.2 kB / 435.5 MB, free: 2.328 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2978, allocations: 0 / 435.5 MB, free: 2.328 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.81e-07/0.2978, allocations: 0 / 435.5 MB, free: 2.328 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.2979, allocations: 0 / 435.5 MB, free: 2.328 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001043/0.2989, allocations: 0.5088 MB / 436 MB, free: 1.789 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.2989, allocations: 12.03 kB / 436 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.31e-05/0.299, allocations: 62.72 kB / 436.1 MB, free: 1.707 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.118e-05/0.2991, allocations: 32.8 kB / 436.1 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003224/0.2994, allocations: 190.3 kB / 436.3 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003/0.2997, allocations: 351.4 kB / 436.7 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.14e-05/0.2997, allocations: 20 kB / 436.7 MB, free: 1.039 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007755/0.3005, allocations: 366.6 kB / 437 MB, free: 0.668 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.82e-05/0.3005, allocations: 3.953 kB / 437 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.715e-05/0.3006, allocations: 12 kB / 437 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.425e-06/0.3006, allocations: 8 kB / 437.1 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00124/0.3018, allocations: 497.6 kB / 437.5 MB, free: 160 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001655/0.3035, allocations: 0.9498 MB / 438.5 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001083/0.3045, allocations: 326.1 kB / 438.8 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004646/0.305, allocations: 169.2 kB / 439 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.717e-05/0.305, allocations: 4.234 kB / 439 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.222e-05/0.3051, allocations: 30.8 kB / 439 MB, free: 14.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.283e-06/0.3051, allocations: 0 / 439 MB, free: 14.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.02559/0.3307, allocations: 5.655 MB / 444.7 MB, free: 8.906 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.123e-05/0.3307, allocations: 55.84 kB / 444.7 MB, free: 8.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002775/0.331, allocations: 203.2 kB / 444.9 MB, free: 8.633 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.749e-05/0.331, allocations: 33.7 kB / 444.9 MB, free: 8.594 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001239/0.3312, allocations: 153 kB / 445.1 MB, free: 8.441 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001837/0.3314, allocations: 182.4 kB / 445.3 MB, free: 8.262 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002091/0.3316, allocations: 98.17 kB / 445.4 MB, free: 8.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.3317, allocations: 334.8 kB / 445.7 MB, free: 7.824 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001287/0.333, allocations: 473 kB / 446.2 MB, free: 7.359 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001342/0.3344, allocations: 0.5185 MB / 446.7 MB, free: 6.832 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002277/0.3366, allocations: 0.8062 MB / 447.5 MB, free: 6.012 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.3366, allocations: 0 / 447.5 MB, free: 6.012 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002675/0.3393, allocations: 0.9815 MB / 448.5 MB, free: 5.023 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.3393, allocations: 7.938 kB / 448.5 MB, free: 5.016 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.3394, allocations: 4 kB / 448.5 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.3394, allocations: 0 / 448.5 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00094/0.3403, allocations: 171.8 kB / 448.6 MB, free: 4.844 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.538e-05/0.3403, allocations: 7.984 kB / 448.7 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006439/0.341, allocations: 83.89 kB / 448.7 MB, free: 4.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.46e-05/0.341, allocations: 16 kB / 448.8 MB, free: 4.738 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0002278/0.3413, allocations: 161.7 kB / 448.9 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001/0.3414, allocations: 31.75 kB / 448.9 MB, free: 4.539 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001242/0.3415, allocations: 47.31 kB / 449 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/0.3415, allocations: 8 kB / 449 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.689e-06/0.3415, allocations: 3.984 kB / 449 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.3415, allocations: 0 / 449 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004183/0.3457, allocations: 1.849 MB / 450.8 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.358e-05/0.3457, allocations: 8 kB / 450.9 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006342/0.3463, allocations: 151.8 kB / 451 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.599e-05/0.3463, allocations: 15.88 kB / 451 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.459e-05/0.3464, allocations: 20 kB / 451 MB, free: 2.285 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.548e-06/0.3464, allocations: 12 kB / 451 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.445e-05/0.3464, allocations: 15.94 kB / 451.1 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002733/0.3492, allocations: 1.228 MB / 452.3 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001823/0.3493, allocations: 67.88 kB / 452.4 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.87e-05/0.3494, allocations: 20 kB / 452.4 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005099/0.3499, allocations: 79.91 kB / 452.5 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001825/0.3501, allocations: 91.64 kB / 452.5 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.915e-05/0.3501, allocations: 20 kB / 452.6 MB, free: 0.625 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001871/0.3503, allocations: 155.5 kB / 452.7 MB, free: 484 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3503, allocations: 0 / 452.7 MB, free: 484 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004847/0.3508, allocations: 96 kB / 452.8 MB, free: 388 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.003088/0.3539, allocations: 1.785 MB / 454.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002198/0.3561, allocations: 0.7824 MB / 455.4 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.217e-06/0.3561, allocations: 0 / 455.4 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008804/0.357, allocations: 317.7 kB / 455.7 MB, free: 13.37 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005965/0.3576, allocations: 59.91 kB / 455.7 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01069/0.3683, allocations: 5.244 MB / 461 MB, free: 7.742 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004632/0.3687, allocations: 0.784 MB / 461.8 MB, free: 6.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004254/0.3691, allocations: 83.19 kB / 461.9 MB, free: 6.852 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002824/0.3694, allocations: 95.41 kB / 462 MB, free: 6.758 MB / 366.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3694, allocations: 0 / 462 MB, free: 6.758 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04121/0.4106, allocations: 8.885 MB / 470.8 MB, free: 14 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.74, allocations: 4 kB / 470.8 MB, free: 14 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --stepSize=0.000798722 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.194312851177529]