Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.001288/0.001288, allocations: 117.3 kB / 18.5 MB, free: 4.434 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.001368/0.001368, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.409/1.409, allocations: 230.2 MB / 254.5 MB, free: 15.25 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.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002987/0.002987, allocations: 63.89 kB / 373.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1285, allocations: 53.32 MB / 426.6 MB, free: 5.008 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003784/0.1323, allocations: 2.374 MB / 429 MB, free: 2.621 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001552/0.1339, allocations: 0.8455 MB / 429.9 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001445/0.134, allocations: 7.938 kB / 429.9 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000284/0.1343, allocations: 55.56 kB / 429.9 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002005/0.1345, allocations: 59.5 kB / 430 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005136/0.135, allocations: 183.6 kB / 430.2 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004207/0.1354, allocations: 375.6 kB / 430.5 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001873/0.1356, allocations: 75.83 kB / 430.6 MB, free: 1.023 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003025/0.1359, allocations: 175.4 kB / 430.8 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002371/0.1362, allocations: 171.3 kB / 430.9 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.149e-05/0.1362, allocations: 36 kB / 431 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.638e-05/0.1363, allocations: 32 kB / 431 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001083/0.1364, allocations: 107.7 kB / 431.1 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000141/0.1365, allocations: 151.2 kB / 431.3 MB, free: 372 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003828/0.1369, allocations: 334.6 kB / 431.6 MB, free: 36 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1369, allocations: 4 kB / 431.6 MB, free: 32 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1369, allocations: 0 / 431.6 MB, free: 32 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.1369, allocations: 3.938 kB / 431.6 MB, free: 28 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.1844/0.3213, allocations: 0.6146 MB / 432.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.417e-05/0.3214, allocations: 11.09 kB / 432.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.912e-05/0.3214, allocations: 70.34 kB / 432.3 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.594e-05/0.3215, allocations: 42.61 kB / 432.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004438/0.322, allocations: 272.7 kB / 432.6 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001932/0.3222, allocations: 136.9 kB / 432.7 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.571e-05/0.3222, allocations: 32.56 kB / 432.8 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001143/0.3234, allocations: 0.5667 MB / 433.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.213e-05/0.3234, allocations: 2.469 kB / 433.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.315e-05/0.3234, allocations: 11.56 kB / 433.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.3234, allocations: 7.156 kB / 433.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001157/0.3246, allocations: 0.5154 MB / 433.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001363/0.326, allocations: 1.008 MB / 434.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001462/0.3274, allocations: 484.1 kB / 435.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005441/0.328, allocations: 237.1 kB / 435.6 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.85e-05/0.328, allocations: 10.11 kB / 435.6 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.26e-05/0.328, allocations: 39.38 kB / 435.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.174e-06/0.328, allocations: 0 / 435.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03698/0.365, allocations: 5.724 MB / 441.4 MB, free: 9.145 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.425e-05/0.3651, allocations: 147.9 kB / 441.5 MB, free: 8.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002159/0.3653, allocations: 204.5 kB / 441.7 MB, free: 8.836 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.681e-05/0.3654, allocations: 36.08 kB / 441.7 MB, free: 8.797 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.783e-05/0.3654, allocations: 142.7 kB / 441.9 MB, free: 8.668 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001545/0.3656, allocations: 200.6 kB / 442.1 MB, free: 8.516 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002557/0.3659, allocations: 112.9 kB / 442.2 MB, free: 8.453 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.708e-05/0.3659, allocations: 341.4 kB / 442.5 MB, free: 8.129 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001423/0.3673, allocations: 0.6208 MB / 443.1 MB, free: 7.883 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0015/0.3688, allocations: 0.7967 MB / 443.9 MB, free: 7.418 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002656/0.3715, allocations: 1.253 MB / 445.2 MB, free: 6.754 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.3715, allocations: 1.094 kB / 445.2 MB, free: 6.754 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.0032/0.3747, allocations: 1.396 MB / 446.6 MB, free: 6.172 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.402e-05/0.3747, allocations: 9.109 kB / 446.6 MB, free: 6.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.363e-05/0.3747, allocations: 6.5 kB / 446.6 MB, free: 6.172 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.899e-05/0.3748, allocations: 11.02 kB / 446.6 MB, free: 6.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/0.3761, allocations: 210.4 kB / 446.8 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.702e-05/0.3761, allocations: 13.02 kB / 446.8 MB, free: 6.152 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009272/0.377, allocations: 106.6 kB / 446.9 MB, free: 6.129 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.655e-05/0.3771, allocations: 27.81 kB / 447 MB, free: 6.125 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.0002845/0.3774, allocations: 191.7 kB / 447.1 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002889/0.3777, allocations: 154.3 kB / 447.3 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001493/0.3778, allocations: 60.3 kB / 447.4 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.217e-06/0.3778, allocations: 10.22 kB / 447.4 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.298e-05/0.3778, allocations: 1.375 kB / 447.4 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.979e-06/0.3778, allocations: 3.984 kB / 447.4 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004095/0.3819, allocations: 2.175 MB / 449.5 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.327e-05/0.382, allocations: 11 kB / 449.6 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006835/0.3826, allocations: 186.3 kB / 449.7 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.54e-05/0.3827, allocations: 14.31 kB / 449.7 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.689e-05/0.3827, allocations: 27.41 kB / 449.8 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.445e-05/0.3827, allocations: 17.38 kB / 449.8 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.056e-05/0.3827, allocations: 18.64 kB / 449.8 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002575/0.3853, allocations: 1.56 MB / 451.4 MB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001935/0.3855, allocations: 163.7 kB / 451.5 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.032e-05/0.3856, allocations: 23.88 kB / 451.6 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005315/0.3861, allocations: 83.03 kB / 451.6 MB, free: 3.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001696/0.3863, allocations: 91.3 kB / 451.7 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.582e-05/0.3863, allocations: 29.72 kB / 451.8 MB, free: 3.031 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001106/0.3864, allocations: 146.2 kB / 451.9 MB, free: 2.922 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3864, allocations: 3.938 kB / 451.9 MB, free: 2.918 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006693/0.3871, allocations: 122.6 kB / 452 MB, free: 2.898 MB / 350.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.002777/0.3899, allocations: 2.126 MB / 454.1 MB, free: 1.215 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002394/0.3923, allocations: 1.03 MB / 455.2 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 9.197e-06/0.3923, allocations: 3.406 kB / 455.2 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008657/0.3931, allocations: 333.8 kB / 455.5 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008764/0.394, allocations: 142 kB / 455.6 MB, free: 496 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01302/0.407, allocations: 6.776 MB / 462.4 MB, free: 11.4 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006093/0.4076, allocations: 0.8141 MB / 463.2 MB, free: 10.64 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005177/0.4082, allocations: 92.75 kB / 463.3 MB, free: 10.6 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003695/0.4085, allocations: 116.6 kB / 463.4 MB, free: 10.51 MB / 366.1 MB Notification: Performance of SimCode: time 8.02e-07/0.4085, allocations: 0 / 463.4 MB, free: 10.51 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0423/0.4508, allocations: 11.35 MB / 474.8 MB, free: 1.094 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.162/8.612, allocations: 8 kB / 474.8 MB, free: 1.086 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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: 11.242341531906277]