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.001513/0.001513, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.001664/0.001664, allocations: 209.6 kB / 24.53 MB, free: 4.07 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.701/1.701, allocations: 230.5 MB / 258.2 MB, free: 8.031 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002038/0.002038, allocations: 59.91 kB / 378.5 MB, free: 3.043 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4692/0.4713, allocations: 53.41 MB / 431.9 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.005836/0.4771, allocations: 2.186 MB / 434.1 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002656/0.4798, allocations: 0.6977 MB / 434.8 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005347/0.4803, allocations: 7.938 kB / 434.8 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000611/0.4809, allocations: 39.7 kB / 434.9 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000457/0.4814, allocations: 59.55 kB / 434.9 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008267/0.4822, allocations: 123.8 kB / 435.1 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007074/0.4829, allocations: 343.1 kB / 435.4 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002605/0.4832, allocations: 56.5 kB / 435.4 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005339/0.4837, allocations: 143.6 kB / 435.6 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004139/0.4841, allocations: 163.2 kB / 435.7 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.639e-05/0.4842, allocations: 32 kB / 435.8 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.448e-05/0.4843, allocations: 28 kB / 435.8 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001381/0.4844, allocations: 91.78 kB / 435.9 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001773/0.4846, allocations: 119.4 kB / 436 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005769/0.4852, allocations: 283.7 kB / 436.3 MB, free: 2.359 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.999e-06/0.4852, allocations: 4 kB / 436.3 MB, free: 2.355 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.946e-06/0.4852, allocations: 0 / 436.3 MB, free: 2.355 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.811e-05/0.4852, allocations: 0 / 436.3 MB, free: 2.355 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.001934/0.4871, allocations: 0.5126 MB / 436.8 MB, free: 1.812 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.463e-05/0.4872, allocations: 12.03 kB / 436.8 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.286e-05/0.4873, allocations: 4.188 kB / 436.8 MB, free: 1.797 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001442/0.4874, allocations: 66.72 kB / 436.9 MB, free: 1.723 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001375/0.4875, allocations: 32.8 kB / 436.9 MB, free: 1.691 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005835/0.4881, allocations: 186.3 kB / 437.1 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000475/0.4886, allocations: 355.3 kB / 437.4 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.003e-05/0.4887, allocations: 24 kB / 437.5 MB, free: 1.051 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001035/0.4897, allocations: 362.6 kB / 437.8 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.33e-05/0.4897, allocations: 3.953 kB / 437.8 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.304e-05/0.4898, allocations: 15.98 kB / 437.8 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.4898, allocations: 4 kB / 437.8 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00151/0.4913, allocations: 497.6 kB / 438.3 MB, free: 176 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002433/0.4937, allocations: 0.9576 MB / 439.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001379/0.4951, allocations: 314.2 kB / 439.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005468/0.4957, allocations: 169.2 kB / 439.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.852e-05/0.4957, allocations: 8.172 kB / 439.8 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.528e-05/0.4957, allocations: 38.8 kB / 439.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 3.857e-06/0.4957, allocations: 0 / 439.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.02805/0.5238, allocations: 5.647 MB / 445.5 MB, free: 8.922 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.243e-05/0.5238, allocations: 63.84 kB / 445.5 MB, free: 8.848 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002965/0.5241, allocations: 191.2 kB / 445.7 MB, free: 8.652 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.463e-05/0.5242, allocations: 37.7 kB / 445.7 MB, free: 8.609 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001391/0.5243, allocations: 152.9 kB / 445.9 MB, free: 8.457 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000206/0.5245, allocations: 186.4 kB / 446.1 MB, free: 8.273 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002324/0.5248, allocations: 94.3 kB / 446.2 MB, free: 8.176 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.525, allocations: 334.8 kB / 446.5 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001389/0.5263, allocations: 473 kB / 446.9 MB, free: 7.375 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001383/0.5277, allocations: 0.5147 MB / 447.5 MB, free: 6.852 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002494/0.5302, allocations: 0.7984 MB / 448.3 MB, free: 6.039 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.5302, allocations: 8 kB / 448.3 MB, free: 6.031 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002981/0.5332, allocations: 0.9852 MB / 449.3 MB, free: 5.039 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.046e-05/0.5332, allocations: 10.5 kB / 449.3 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.5332, allocations: 3.938 kB / 449.3 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.616e-05/0.5333, allocations: 4 kB / 449.3 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/0.5343, allocations: 171.8 kB / 449.4 MB, free: 4.855 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.735e-05/0.5343, allocations: 4 kB / 449.4 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007341/0.535, allocations: 83.88 kB / 449.5 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.366e-05/0.5351, allocations: 20 kB / 449.5 MB, free: 4.75 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.0002959/0.5354, allocations: 161.7 kB / 449.7 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.5355, allocations: 35.75 kB / 449.7 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001439/0.5357, allocations: 51.31 kB / 449.8 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.5357, allocations: 4 kB / 449.8 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.5357, allocations: 0 / 449.8 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.5357, allocations: 3.984 kB / 449.8 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00449/0.5402, allocations: 1.842 MB / 451.6 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-05/0.5402, allocations: 8 kB / 451.6 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006869/0.5409, allocations: 152.6 kB / 451.8 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.692e-05/0.5409, allocations: 12 kB / 451.8 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.446e-05/0.5409, allocations: 16 kB / 451.8 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-05/0.541, allocations: 19.92 kB / 451.8 MB, free: 2.285 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.389e-05/0.541, allocations: 11.94 kB / 451.9 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002928/0.5439, allocations: 1.228 MB / 453.1 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002187/0.5441, allocations: 63.86 kB / 453.1 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.414e-05/0.5442, allocations: 23.98 kB / 453.2 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005564/0.5447, allocations: 67.92 kB / 453.2 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002151/0.545, allocations: 91.64 kB / 453.3 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.658e-05/0.545, allocations: 24 kB / 453.3 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002045/0.5452, allocations: 155.5 kB / 453.5 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5452, allocations: 3.938 kB / 453.5 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005842/0.5458, allocations: 92 kB / 453.6 MB, free: 412 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.00371/0.5495, allocations: 1.789 MB / 455.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002487/0.552, allocations: 0.7825 MB / 456.2 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.866e-06/0.552, allocations: 0 / 456.2 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.553, allocations: 317.7 kB / 456.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007717/0.5538, allocations: 65.31 kB / 456.5 MB, free: 13.33 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01217/0.566, allocations: 5.254 MB / 461.8 MB, free: 7.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006645/0.5667, allocations: 0.7801 MB / 462.6 MB, free: 6.941 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004872/0.5671, allocations: 83.19 kB / 462.7 MB, free: 6.863 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003475/0.5675, allocations: 99.41 kB / 462.8 MB, free: 6.766 MB / 366.1 MB Notification: Performance of SimCode: time 1.864e-06/0.5675, allocations: 0 / 462.8 MB, free: 6.766 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04224/0.6097, allocations: 8.907 MB / 471.7 MB, free: 13.99 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.05/12.66, allocations: 12 kB / 471.7 MB, free: 13.98 MB / 382.1 MB " [Timeout remaining time 647] (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: 15.634818077029195]