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.001605/0.001606, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001659/0.001659, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.521/1.521, allocations: 227.4 MB / 247 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00182/0.001821, allocations: 63.91 kB / 358.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2875/0.2893, allocations: 50.55 MB / 408.8 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003932/0.2933, allocations: 2.334 MB / 411.1 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001595/0.2949, allocations: 0.8066 MB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001476/0.2951, allocations: 4 kB / 412 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002837/0.2954, allocations: 55.58 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002022/0.2956, allocations: 59.55 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005041/0.2961, allocations: 159.6 kB / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004305/0.2966, allocations: 375.6 kB / 412.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002066/0.2968, allocations: 91.38 kB / 412.7 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003302/0.2971, allocations: 171.5 kB / 412.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002569/0.2974, allocations: 171.3 kB / 413 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.486e-05/0.2975, allocations: 32 kB / 413 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.938e-05/0.2975, allocations: 36 kB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.2976, allocations: 87.78 kB / 413.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001577/0.2978, allocations: 147.2 kB / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004404/0.2983, allocations: 329.7 kB / 413.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2983, allocations: 0 / 413.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.2983, allocations: 0 / 413.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.2983, allocations: 0 / 413.6 MB, free: 12.62 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.001251/0.2996, allocations: 0.6159 MB / 414.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/0.2996, allocations: 16.03 kB / 414.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.249e-05/0.2997, allocations: 66.67 kB / 414.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.108e-05/0.2998, allocations: 36.75 kB / 414.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004643/0.3003, allocations: 275.7 kB / 414.6 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002251/0.3005, allocations: 142.1 kB / 414.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.09e-05/0.3006, allocations: 28.33 kB / 414.8 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001245/0.3018, allocations: 0.5453 MB / 415.3 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.744e-05/0.3019, allocations: 3.938 kB / 415.3 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.75e-05/0.3019, allocations: 15.98 kB / 415.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.3019, allocations: 8 kB / 415.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001442/0.3034, allocations: 0.5112 MB / 415.9 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001706/0.3051, allocations: 1.006 MB / 416.9 MB, free: 9.148 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001761/0.3069, allocations: 0.5074 MB / 417.4 MB, free: 8.605 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006671/0.3076, allocations: 259.4 kB / 417.6 MB, free: 8.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.308e-05/0.3076, allocations: 4 kB / 417.6 MB, free: 8.336 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.153e-05/0.3077, allocations: 42.56 kB / 417.7 MB, free: 8.285 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.875e-06/0.3077, allocations: 3.938 kB / 417.7 MB, free: 8.281 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03985/0.3475, allocations: 5.718 MB / 423.4 MB, free: 2.555 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001685/0.3477, allocations: 157 kB / 423.6 MB, free: 2.371 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003089/0.3481, allocations: 194.6 kB / 423.8 MB, free: 2.172 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.697e-05/0.3482, allocations: 37.7 kB / 423.8 MB, free: 2.129 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001527/0.3483, allocations: 145.7 kB / 423.9 MB, free: 1.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002586/0.3486, allocations: 198.3 kB / 424.1 MB, free: 1.785 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003142/0.3489, allocations: 114.7 kB / 424.2 MB, free: 1.668 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002196/0.3491, allocations: 342.8 kB / 424.6 MB, free: 1.324 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001786/0.3509, allocations: 0.6187 MB / 425.2 MB, free: 0.707 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001945/0.3529, allocations: 0.8002 MB / 426 MB, free: 15.83 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003417/0.3563, allocations: 1.244 MB / 427.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.386e-05/0.3564, allocations: 11.94 kB / 427.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003994/0.3604, allocations: 1.39 MB / 428.6 MB, free: 13.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.123e-05/0.3604, allocations: 10.97 kB / 428.7 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.954e-05/0.3605, allocations: 8 kB / 428.7 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.836e-05/0.3605, allocations: 12.38 kB / 428.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001358/0.3619, allocations: 215.6 kB / 428.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.519e-05/0.3619, allocations: 11.94 kB / 428.9 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009821/0.3629, allocations: 103.8 kB / 429 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.333e-05/0.363, allocations: 35.92 kB / 429 MB, free: 12.71 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.0003719/0.3634, allocations: 173.7 kB / 429.2 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003652/0.3638, allocations: 153.6 kB / 429.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002101/0.364, allocations: 63.3 kB / 429.4 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.246e-05/0.364, allocations: 15.98 kB / 429.4 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.364, allocations: 0 / 429.4 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.46e-05/0.364, allocations: 7.984 kB / 429.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005207/0.3692, allocations: 2.168 MB / 431.6 MB, free: 9.938 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.524e-05/0.3693, allocations: 8 kB / 431.6 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000803/0.3701, allocations: 180.2 kB / 431.8 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.832e-05/0.3701, allocations: 16 kB / 431.8 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.303e-05/0.3702, allocations: 31.98 kB / 431.8 MB, free: 9.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.709e-05/0.3702, allocations: 15.94 kB / 431.8 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.401e-05/0.3702, allocations: 15.94 kB / 431.9 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003514/0.3738, allocations: 1.561 MB / 433.4 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002442/0.374, allocations: 156.8 kB / 433.6 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.217e-05/0.3741, allocations: 31.98 kB / 433.6 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006089/0.3747, allocations: 71.92 kB / 433.7 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002104/0.375, allocations: 95.72 kB / 433.8 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.194e-05/0.375, allocations: 35.94 kB / 433.8 MB, free: 7.559 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001459/0.3752, allocations: 144.3 kB / 433.9 MB, free: 7.418 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3752, allocations: 4 kB / 434 MB, free: 7.414 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006974/0.3759, allocations: 120 kB / 434.1 MB, free: 7.297 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.003911/0.3798, allocations: 2.133 MB / 436.2 MB, free: 5.004 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003182/0.383, allocations: 1.135 MB / 437.3 MB, free: 3.863 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/0.383, allocations: 3.938 kB / 437.3 MB, free: 3.859 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001136/0.3842, allocations: 342.4 kB / 437.7 MB, free: 3.527 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009596/0.3852, allocations: 135.6 kB / 437.8 MB, free: 3.395 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01447/0.3996, allocations: 6.775 MB / 444.6 MB, free: 12.13 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000524/0.4002, allocations: 0.8167 MB / 445.4 MB, free: 11.29 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005031/0.4007, allocations: 95.31 kB / 445.5 MB, free: 11.19 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003943/0.4011, allocations: 115.4 kB / 445.6 MB, free: 11.07 MB / 366.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4011, allocations: 0 / 445.6 MB, free: 11.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03943/0.4406, allocations: 11.22 MB / 456.8 MB, free: 15.97 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.188/9.629, allocations: 15.88 kB / 456.8 MB, free: 15.95 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.1.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