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.001348/0.001348, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.001643/0.001643, allocations: 210.9 kB / 24.52 MB, free: 3.941 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.629/1.629, allocations: 230.5 MB / 258.2 MB, free: 7.805 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.001858/0.001858, allocations: 63.89 kB / 378.5 MB, free: 2.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3492/0.3511, allocations: 53.41 MB / 431.9 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003581/0.3547, allocations: 2.069 MB / 434 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00132/0.356, allocations: 0.651 MB / 434.6 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001357/0.3561, allocations: 7.938 kB / 434.6 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000346/0.3565, allocations: 47.61 kB / 434.7 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001755/0.3566, allocations: 51.64 kB / 434.7 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004356/0.3571, allocations: 131.7 kB / 434.8 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004532/0.3575, allocations: 343.2 kB / 435.2 MB, free: 3.184 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001921/0.3577, allocations: 52.52 kB / 435.2 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003639/0.3581, allocations: 147.6 kB / 435.4 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002695/0.3584, allocations: 163.3 kB / 435.5 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.251e-05/0.3584, allocations: 32 kB / 435.6 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.811e-05/0.3585, allocations: 32 kB / 435.6 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000131/0.3586, allocations: 83.73 kB / 435.7 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001335/0.3587, allocations: 107.5 kB / 435.8 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000436/0.3592, allocations: 290.9 kB / 436.1 MB, free: 2.289 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.3592, allocations: 0 / 436.1 MB, free: 2.289 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.098e-06/0.3592, allocations: 8 kB / 436.1 MB, free: 2.281 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.154e-06/0.3592, allocations: 0 / 436.1 MB, free: 2.281 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.001291/0.3605, allocations: 0.5126 MB / 436.6 MB, free: 1.738 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/0.3605, allocations: 12.03 kB / 436.6 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.064e-05/0.3606, allocations: 4.188 kB / 436.6 MB, free: 1.723 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.824e-05/0.3606, allocations: 66.72 kB / 436.7 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.968e-05/0.3607, allocations: 36.73 kB / 436.7 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004797/0.3612, allocations: 186.3 kB / 436.9 MB, free: 1.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003573/0.3616, allocations: 347.3 kB / 437.2 MB, free: 1.004 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.24e-05/0.3616, allocations: 24 kB / 437.2 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009228/0.3625, allocations: 378.5 kB / 437.6 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.3626, allocations: 3.953 kB / 437.6 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.568e-05/0.3626, allocations: 12 kB / 437.6 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.388e-05/0.3626, allocations: 4 kB / 437.6 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001437/0.3641, allocations: 0.5016 MB / 438.1 MB, free: 76 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002005/0.3661, allocations: 0.8951 MB / 439 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001037/0.3671, allocations: 302.3 kB / 439.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005134/0.3676, allocations: 181.2 kB / 439.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.042e-05/0.3677, allocations: 8 kB / 439.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.3677, allocations: 34.5 kB / 439.5 MB, free: 14.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 2.845e-06/0.3677, allocations: 0 / 439.5 MB, free: 14.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=53): time 0.02719/0.3949, allocations: 5.672 MB / 445.2 MB, free: 8.859 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.658e-05/0.3949, allocations: 59.84 kB / 445.3 MB, free: 8.789 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002661/0.3952, allocations: 207.2 kB / 445.5 MB, free: 8.578 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.711e-05/0.3953, allocations: 33.7 kB / 445.5 MB, free: 8.539 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.954e-05/0.3954, allocations: 153 kB / 445.7 MB, free: 8.387 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001675/0.3955, allocations: 186.4 kB / 445.8 MB, free: 8.203 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002221/0.3957, allocations: 90.3 kB / 445.9 MB, free: 8.109 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.3959, allocations: 342.8 kB / 446.3 MB, free: 7.766 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001326/0.3972, allocations: 473 kB / 446.7 MB, free: 7.301 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001313/0.3985, allocations: 0.5186 MB / 447.2 MB, free: 6.773 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002295/0.4008, allocations: 0.8179 MB / 448.1 MB, free: 5.941 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.4008, allocations: 0 / 448.1 MB, free: 5.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002777/0.4036, allocations: 0.993 MB / 449.1 MB, free: 4.941 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.837e-05/0.4036, allocations: 11.92 kB / 449.1 MB, free: 4.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.4036, allocations: 8.125 kB / 449.1 MB, free: 4.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.036e-05/0.4037, allocations: 0 / 449.1 MB, free: 4.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009803/0.4046, allocations: 167.7 kB / 449.2 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.191e-05/0.4047, allocations: 4 kB / 449.2 MB, free: 4.754 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006783/0.4053, allocations: 87.88 kB / 449.3 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.919e-05/0.4054, allocations: 20 kB / 449.4 MB, free: 4.648 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: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0002497/0.4056, allocations: 158.4 kB / 449.5 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.291e-05/0.4057, allocations: 35.78 kB / 449.5 MB, free: 4.449 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001176/0.4059, allocations: 47.31 kB / 449.6 MB, free: 4.402 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.4059, allocations: 7.938 kB / 449.6 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.4059, allocations: 0 / 449.6 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.4059, allocations: 3.984 kB / 449.6 MB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004195/0.4101, allocations: 1.743 MB / 451.3 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.547e-05/0.4101, allocations: 8 kB / 451.3 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006529/0.4107, allocations: 143.8 kB / 451.5 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.736e-05/0.4108, allocations: 15.94 kB / 451.5 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.741e-05/0.4108, allocations: 24.42 kB / 451.5 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.351e-05/0.4108, allocations: 19.94 kB / 451.5 MB, free: 2.285 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.148e-05/0.4108, allocations: 11.94 kB / 451.6 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002801/0.4136, allocations: 1.246 MB / 452.8 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001736/0.4138, allocations: 79.73 kB / 452.9 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.801e-05/0.4139, allocations: 16 kB / 452.9 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005327/0.4144, allocations: 83.91 kB / 453 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001967/0.4146, allocations: 91.64 kB / 453.1 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.291e-05/0.4147, allocations: 24 kB / 453.1 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001848/0.4148, allocations: 147.5 kB / 453.2 MB, free: 472 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4148, allocations: 0 / 453.2 MB, free: 472 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.000486/0.4153, allocations: 100 kB / 453.3 MB, free: 372 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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.003145/0.4185, allocations: 1.802 MB / 455.1 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002315/0.4208, allocations: 0.7941 MB / 455.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.222e-06/0.4208, allocations: 256 / 455.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00096/0.4218, allocations: 329.5 kB / 456.3 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006179/0.4224, allocations: 58.66 kB / 456.3 MB, free: 13.26 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01079/0.4332, allocations: 5.301 MB / 461.6 MB, free: 7.633 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002039/0.4334, allocations: 172.2 kB / 461.8 MB, free: 7.445 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004064/0.4338, allocations: 78.88 kB / 461.9 MB, free: 7.371 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003042/0.4341, allocations: 99.41 kB / 462 MB, free: 7.273 MB / 366.1 MB Notification: Performance of SimCode: time 1.112e-06/0.4341, allocations: 3.938 kB / 462 MB, free: 7.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03211/0.4662, allocations: 9.221 MB / 471.2 MB, free: 14.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.69, allocations: 14.19 kB / 471.2 MB, free: 14.22 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.54525205004029]