Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.SuperSampled,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001301/0.001301, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001472/0.001472, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.553/1.553, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 63.91 kB / 358.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3551/0.3565, allocations: 50.55 MB / 408.7 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.005001/0.3616, allocations: 2.33 MB / 411.1 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002156/0.3638, allocations: 0.8066 MB / 411.9 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003783/0.3642, allocations: 4 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004117/0.3647, allocations: 51.58 kB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004089/0.3651, allocations: 59.56 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007363/0.3659, allocations: 163.7 kB / 412.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006214/0.3665, allocations: 375.5 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002942/0.3668, allocations: 103.3 kB / 412.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004751/0.3673, allocations: 159.5 kB / 412.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000386/0.3677, allocations: 179.3 kB / 412.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.222e-05/0.3678, allocations: 32 kB / 413 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.651e-05/0.3679, allocations: 32 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001281/0.368, allocations: 95.72 kB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001742/0.3682, allocations: 143.3 kB / 413.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004907/0.3687, allocations: 324.5 kB / 413.6 MB, free: 12.72 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.784e-06/0.3687, allocations: 0 / 413.6 MB, free: 12.72 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.776e-06/0.3688, allocations: 3.938 kB / 413.6 MB, free: 12.72 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.937e-05/0.3688, allocations: 0 / 413.6 MB, free: 12.72 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001603/0.3704, allocations: 0.6084 MB / 414.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.551e-05/0.3705, allocations: 12.03 kB / 414.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000107/0.3706, allocations: 70.72 kB / 414.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001245/0.3707, allocations: 32.66 kB / 414.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006004/0.3713, allocations: 276.2 kB / 414.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002371/0.3716, allocations: 134.2 kB / 414.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.952e-05/0.3716, allocations: 32.38 kB / 414.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001345/0.373, allocations: 0.5522 MB / 415.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.937e-05/0.373, allocations: 0 / 415.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.095e-05/0.3731, allocations: 12 kB / 415.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.3731, allocations: 4 kB / 415.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001459/0.3746, allocations: 0.5073 MB / 415.8 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001872/0.3765, allocations: 1.01 MB / 416.8 MB, free: 9.262 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001713/0.3782, allocations: 0.5102 MB / 417.3 MB, free: 8.715 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006736/0.3789, allocations: 260.4 kB / 417.6 MB, free: 8.449 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.216e-05/0.379, allocations: 8 kB / 417.6 MB, free: 8.441 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.235e-05/0.379, allocations: 38.56 kB / 417.6 MB, free: 8.395 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 3.236e-06/0.379, allocations: 4 kB / 417.6 MB, free: 8.391 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03936/0.4184, allocations: 5.713 MB / 423.3 MB, free: 2.668 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001328/0.4186, allocations: 149 kB / 423.5 MB, free: 2.492 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002747/0.4189, allocations: 198.6 kB / 423.7 MB, free: 2.289 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.481e-05/0.419, allocations: 33.7 kB / 423.7 MB, free: 2.25 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.4191, allocations: 149.5 kB / 423.8 MB, free: 2.098 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002227/0.4193, allocations: 193.2 kB / 424 MB, free: 1.906 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003214/0.4197, allocations: 110.7 kB / 424.1 MB, free: 1.793 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.4198, allocations: 342.8 kB / 424.5 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001659/0.4215, allocations: 0.6152 MB / 425.1 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001777/0.4232, allocations: 0.7964 MB / 425.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003121/0.4264, allocations: 1.247 MB / 427.1 MB, free: 14.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.888e-06/0.4264, allocations: 3.938 kB / 427.1 MB, free: 14.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00384/0.4303, allocations: 1.405 MB / 428.5 MB, free: 13.22 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.316e-05/0.4303, allocations: 8 kB / 428.6 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.88e-05/0.4304, allocations: 8 kB / 428.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.905e-05/0.4304, allocations: 8 kB / 428.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001637/0.432, allocations: 211.6 kB / 428.8 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.71e-05/0.4321, allocations: 11.98 kB / 428.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001018/0.4331, allocations: 103.8 kB / 428.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.929e-05/0.4332, allocations: 24 kB / 428.9 MB, free: 12.85 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.0003988/0.4336, allocations: 189.5 kB / 429.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003685/0.434, allocations: 157.2 kB / 429.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001653/0.4342, allocations: 59.3 kB / 429.3 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.29e-05/0.4342, allocations: 8 kB / 429.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-05/0.4342, allocations: 8 kB / 429.3 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.4342, allocations: 3.984 kB / 429.3 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00515/0.4394, allocations: 2.16 MB / 431.5 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.78e-05/0.4395, allocations: 12 kB / 431.5 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008197/0.4403, allocations: 187.7 kB / 431.7 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.982e-05/0.4403, allocations: 12.5 kB / 431.7 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.58e-05/0.4404, allocations: 28 kB / 431.7 MB, free: 9.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.89e-05/0.4404, allocations: 23.92 kB / 431.7 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.06e-05/0.4404, allocations: 15.94 kB / 431.8 MB, free: 9.801 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003435/0.4439, allocations: 1.549 MB / 433.3 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003729/0.4443, allocations: 164.6 kB / 433.5 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001142/0.4444, allocations: 28.22 kB / 433.5 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007283/0.4452, allocations: 71.92 kB / 433.6 MB, free: 7.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002534/0.4454, allocations: 99.72 kB / 433.7 MB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.623e-05/0.4455, allocations: 36.11 kB / 433.7 MB, free: 7.688 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002065/0.4457, allocations: 140.3 kB / 433.8 MB, free: 7.551 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4458, allocations: 11.88 kB / 433.8 MB, free: 7.539 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008868/0.4467, allocations: 124 kB / 434 MB, free: 7.418 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.003931/0.4506, allocations: 2.117 MB / 436.1 MB, free: 5.141 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003069/0.4537, allocations: 1.139 MB / 437.2 MB, free: 3.996 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/0.4538, allocations: 4 kB / 437.2 MB, free: 3.992 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001122/0.4549, allocations: 342.4 kB / 437.6 MB, free: 3.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/0.456, allocations: 131.9 kB / 437.7 MB, free: 3.531 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01379/0.4698, allocations: 6.768 MB / 444.5 MB, free: 12.28 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004792/0.4703, allocations: 0.8051 MB / 445.3 MB, free: 11.45 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005635/0.4709, allocations: 103.3 kB / 445.4 MB, free: 11.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004182/0.4713, allocations: 119.4 kB / 445.5 MB, free: 11.23 MB / 366.1 MB Notification: Performance of SimCode: time 1.332e-06/0.4713, allocations: 0 / 445.5 MB, free: 11.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0387/0.51, allocations: 11.54 MB / 457 MB, free: 15.8 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.839/9.349, allocations: 15.25 kB / 457 MB, free: 15.79 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches