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.001255/0.001255, allocations: 112.7 kB / 20.43 MB, free: 1.453 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.001321/0.001321, allocations: 216.6 kB / 23.74 MB, free: 4.66 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.404/1.404, allocations: 230.5 MB / 257.4 MB, free: 7.996 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.002635/0.002635, allocations: 55.91 kB / 377.7 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3481/0.3507, allocations: 53.41 MB / 431.2 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.0048/0.3555, allocations: 2.389 MB / 433.6 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001782/0.3573, allocations: 0.8533 MB / 434.4 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001834/0.3575, allocations: 7.938 kB / 434.4 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003405/0.3578, allocations: 55.58 kB / 434.5 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002211/0.3581, allocations: 63.48 kB / 434.5 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005501/0.3586, allocations: 183 kB / 434.7 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005038/0.3591, allocations: 383.5 kB / 435.1 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002197/0.3593, allocations: 72.34 kB / 435.2 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003597/0.3597, allocations: 175.4 kB / 435.3 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002895/0.36, allocations: 191.2 kB / 435.5 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.739e-05/0.36, allocations: 32 kB / 435.5 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.629e-05/0.3601, allocations: 36 kB / 435.6 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001289/0.3602, allocations: 95.72 kB / 435.7 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001575/0.3604, allocations: 151.2 kB / 435.8 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004611/0.3609, allocations: 335 kB / 436.1 MB, free: 1.672 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3609, allocations: 0 / 436.1 MB, free: 1.672 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3609, allocations: 0 / 436.1 MB, free: 1.672 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.3609, allocations: 0 / 436.1 MB, free: 1.672 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001258/0.3621, allocations: 0.5483 MB / 436.7 MB, free: 1.094 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.3622, allocations: 12.03 kB / 436.7 MB, free: 1.082 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.803e-05/0.3623, allocations: 66.72 kB / 436.8 MB, free: 1.008 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.243e-05/0.3623, allocations: 48.7 kB / 436.8 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004629/0.3628, allocations: 219.1 kB / 437 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003142/0.3631, allocations: 347.9 kB / 437.4 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.079e-05/0.3632, allocations: 32.38 kB / 437.4 MB, free: 284 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.3644, allocations: 0.5697 MB / 438 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/0.3644, allocations: 4 kB / 438 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.465e-05/0.3644, allocations: 12 kB / 438 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.3644, allocations: 4 kB / 438 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001324/0.3657, allocations: 0.5074 MB / 438.5 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001563/0.3673, allocations: 0.953 MB / 439.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001605/0.3689, allocations: 482.5 kB / 439.9 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000594/0.3695, allocations: 235.4 kB / 440.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.215e-05/0.3696, allocations: 4 kB / 440.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.273e-05/0.3696, allocations: 42.5 kB / 440.2 MB, free: 13.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.826e-06/0.3696, allocations: 4 kB / 440.2 MB, free: 13.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03831/0.4079, allocations: 5.74 MB / 445.9 MB, free: 7.582 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001235/0.408, allocations: 145.3 kB / 446.1 MB, free: 7.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002445/0.4083, allocations: 204.1 kB / 446.3 MB, free: 7.199 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.408e-05/0.4083, allocations: 33.7 kB / 446.3 MB, free: 7.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.4085, allocations: 145.8 kB / 446.5 MB, free: 7.012 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002042/0.4087, allocations: 202.3 kB / 446.7 MB, free: 6.812 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002606/0.4089, allocations: 110.6 kB / 446.8 MB, free: 6.699 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.4091, allocations: 346.8 kB / 447.1 MB, free: 6.352 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00153/0.4106, allocations: 0.6149 MB / 447.7 MB, free: 5.734 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001715/0.4123, allocations: 0.7963 MB / 448.5 MB, free: 4.863 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003054/0.4154, allocations: 1.255 MB / 449.8 MB, free: 3.531 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.4154, allocations: 0 / 449.8 MB, free: 3.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003428/0.4188, allocations: 1.398 MB / 451.2 MB, free: 2.125 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.075e-05/0.4189, allocations: 10.66 kB / 451.2 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.526e-05/0.4189, allocations: 8.219 kB / 451.2 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.652e-05/0.4189, allocations: 8 kB / 451.2 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001437/0.4203, allocations: 207.7 kB / 451.4 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.925e-05/0.4204, allocations: 11.94 kB / 451.4 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009702/0.4213, allocations: 103.8 kB / 451.5 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.835e-05/0.4214, allocations: 31.97 kB / 451.5 MB, free: 1.754 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.0003486/0.4218, allocations: 185.6 kB / 451.7 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003257/0.4221, allocations: 157.3 kB / 451.9 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001816/0.4223, allocations: 63.31 kB / 451.9 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.08e-05/0.4223, allocations: 8 kB / 451.9 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.188e-06/0.4223, allocations: 0 / 451.9 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.4223, allocations: 7.984 kB / 452 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004964/0.4273, allocations: 2.143 MB / 454.1 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.245e-05/0.4273, allocations: 8 kB / 454.1 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007552/0.428, allocations: 183.7 kB / 454.3 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.201e-05/0.428, allocations: 16 kB / 454.3 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.157e-05/0.4281, allocations: 24.41 kB / 454.3 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.989e-05/0.4281, allocations: 24.31 kB / 454.3 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.584e-05/0.4281, allocations: 15.94 kB / 454.4 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003185/0.4313, allocations: 1.549 MB / 455.9 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000232/0.4316, allocations: 95.62 kB / 456 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.567e-05/0.4316, allocations: 24 kB / 456 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005881/0.4322, allocations: 83.84 kB / 456.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001948/0.4324, allocations: 95.64 kB / 456.2 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.186e-05/0.4325, allocations: 32 kB / 456.2 MB, free: 12.72 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001621/0.4326, allocations: 141.2 kB / 456.4 MB, free: 12.58 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4326, allocations: 0 / 456.4 MB, free: 12.58 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007014/0.4333, allocations: 131.9 kB / 456.5 MB, free: 12.45 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.003527/0.4369, allocations: 2.121 MB / 458.6 MB, free: 10.17 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002813/0.4397, allocations: 1.023 MB / 459.6 MB, free: 9.148 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.706e-06/0.4397, allocations: 4 kB / 459.7 MB, free: 9.145 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009824/0.4407, allocations: 334.1 kB / 460 MB, free: 8.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009628/0.4416, allocations: 139.5 kB / 460.1 MB, free: 8.684 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01328/0.4549, allocations: 6.777 MB / 466.9 MB, free: 1.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00051/0.4554, allocations: 0.8167 MB / 467.7 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004996/0.4559, allocations: 99.31 kB / 467.8 MB, free: 472 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003889/0.4563, allocations: 115.3 kB / 467.9 MB, free: 356 kB / 366.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4563, allocations: 0 / 467.9 MB, free: 356 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04872/0.505, allocations: 12.04 MB / 480 MB, free: 4.418 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/12.02, allocations: 2.656 kB / 480 MB, free: 4.418 MB / 382.1 MB " [Timeout remaining time 648] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 14.641462879022583]