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.0007698/0.00077, allocations: 95 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008982/0.0008983, allocations: 202.2 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.256/1.256, allocations: 227.7 MB / 246.8 MB, free: 11.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000223/0.0002231, allocations: 15.92 kB / 307.8 MB, free: 0.7344 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09321/0.09345, allocations: 51.51 MB / 359.4 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.002583/0.09608, allocations: 2.015 MB / 361.4 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001353/0.09746, allocations: 0.7873 MB / 362.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001627/0.09765, allocations: 7.938 kB / 362.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002525/0.09791, allocations: 39.77 kB / 362.2 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002062/0.09813, allocations: 43.69 kB / 362.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004785/0.09862, allocations: 151.8 kB / 362.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003987/0.09902, allocations: 347.6 kB / 362.7 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002012/0.09923, allocations: 91.23 kB / 362.8 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003097/0.09955, allocations: 131.5 kB / 362.9 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002448/0.0998, allocations: 155.3 kB / 363.1 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.575e-05/0.09986, allocations: 16 kB / 363.1 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.966e-05/0.0999, allocations: 16 kB / 363.1 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.917e-05/0.1, allocations: 75.72 kB / 363.2 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001507/0.1002, allocations: 152.9 kB / 363.4 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002938/0.1005, allocations: 307.1 kB / 363.7 MB, free: 8.883 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1005, allocations: 0 / 363.7 MB, free: 8.883 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1005, allocations: 0 / 363.7 MB, free: 8.883 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.306e-06/0.1005, allocations: 3.938 kB / 363.7 MB, free: 8.879 MB / 302.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.001104/0.1016, allocations: 0.5773 MB / 364.2 MB, free: 8.254 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.1017, allocations: 12.03 kB / 364.2 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.536e-05/0.1018, allocations: 62.73 kB / 364.3 MB, free: 8.172 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.764e-05/0.1018, allocations: 40.55 kB / 364.3 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003118/0.1022, allocations: 269.6 kB / 364.6 MB, free: 7.832 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000207/0.1024, allocations: 142.2 kB / 364.8 MB, free: 7.676 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.003e-05/0.1024, allocations: 28.38 kB / 364.8 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001158/0.1036, allocations: 0.568 MB / 365.3 MB, free: 7.059 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.719e-05/0.1036, allocations: 0 / 365.3 MB, free: 7.059 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.461e-05/0.1037, allocations: 12 kB / 365.4 MB, free: 7.047 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.1037, allocations: 15.92 kB / 365.4 MB, free: 7.031 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001354/0.1051, allocations: 0.5386 MB / 365.9 MB, free: 6.492 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001411/0.1065, allocations: 1.006 MB / 366.9 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001558/0.1081, allocations: 0.5258 MB / 367.4 MB, free: 4.848 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000612/0.1087, allocations: 271.4 kB / 367.7 MB, free: 4.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.092e-05/0.1087, allocations: 8 kB / 367.7 MB, free: 4.562 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.751e-05/0.1088, allocations: 46.5 kB / 367.8 MB, free: 4.508 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.963e-06/0.1088, allocations: 0 / 367.8 MB, free: 4.508 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.1949/0.3037, allocations: 6.756 MB / 374.5 MB, free: 20.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.549e-05/0.3038, allocations: 145.6 kB / 374.7 MB, free: 19.88 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002232/0.3041, allocations: 193.4 kB / 374.8 MB, free: 19.78 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001082/0.3042, allocations: 37.7 kB / 374.9 MB, free: 19.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.88e-05/0.3043, allocations: 145.7 kB / 375 MB, free: 19.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002175/0.3045, allocations: 187.4 kB / 375.2 MB, free: 19.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001563/0.3047, allocations: 58.17 kB / 375.3 MB, free: 19.51 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.731e-05/0.3047, allocations: 349.7 kB / 375.6 MB, free: 19.19 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001678/0.3064, allocations: 0.6512 MB / 376.3 MB, free: 19.13 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001655/0.3081, allocations: 0.8381 MB / 377.1 MB, free: 18.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002982/0.3111, allocations: 1.328 MB / 378.4 MB, free: 17.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.196e-06/0.3111, allocations: 2.406 kB / 378.4 MB, free: 17.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003494/0.3146, allocations: 1.471 MB / 379.9 MB, free: 17.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.3146, allocations: 11.19 kB / 379.9 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.601e-05/0.3147, allocations: 6.031 kB / 379.9 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.561e-05/0.3147, allocations: 12.84 kB / 379.9 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/0.316, allocations: 228.4 kB / 380.2 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.264e-05/0.316, allocations: 14.28 kB / 380.2 MB, free: 17.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000976/0.317, allocations: 125.1 kB / 380.3 MB, free: 17.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.55e-05/0.3171, allocations: 26.8 kB / 380.3 MB, free: 17.34 MB / 302.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.0002702/0.3174, allocations: 193.6 kB / 380.5 MB, free: 17.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002802/0.3177, allocations: 149.5 kB / 380.6 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001591/0.3178, allocations: 59.27 kB / 380.7 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.664e-06/0.3178, allocations: 8.125 kB / 380.7 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.224e-05/0.3179, allocations: 2.391 kB / 380.7 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.3179, allocations: 9.297 kB / 380.7 MB, free: 17.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004738/0.3226, allocations: 2.292 MB / 383 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.506e-05/0.3227, allocations: 10.03 kB / 383 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007514/0.3234, allocations: 203.9 kB / 383.2 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-05/0.3234, allocations: 14.11 kB / 383.2 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.309e-05/0.3235, allocations: 24.27 kB / 383.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.615e-05/0.3235, allocations: 19.66 kB / 383.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-05/0.3235, allocations: 15.75 kB / 383.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003151/0.3267, allocations: 1.675 MB / 385 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001711/0.3269, allocations: 165.1 kB / 385.1 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.155e-05/0.3269, allocations: 25.88 kB / 385.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006228/0.3276, allocations: 99.69 kB / 385.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001935/0.3278, allocations: 106.9 kB / 385.4 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.2e-05/0.3278, allocations: 33.91 kB / 385.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001094/0.328, allocations: 142.1 kB / 385.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.328, allocations: 288 / 385.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000657/0.3286, allocations: 122 kB / 385.7 MB, free: 14.55 MB / 302.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.003381/0.332, allocations: 2.233 MB / 387.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002924/0.3349, allocations: 1.196 MB / 389.1 MB, free: 12.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/0.335, allocations: 6.656 kB / 389.1 MB, free: 12.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001034/0.336, allocations: 371.5 kB / 389.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009925/0.337, allocations: 148.4 kB / 389.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01201/0.349, allocations: 7.128 MB / 396.7 MB, free: 7.352 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002442/0.3493, allocations: 0.8183 MB / 397.5 MB, free: 6.598 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005423/0.3498, allocations: 97.23 kB / 397.6 MB, free: 6.512 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003229/0.3502, allocations: 115.4 kB / 397.8 MB, free: 6.398 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3502, allocations: 0 / 397.8 MB, free: 6.398 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02019/0.3704, allocations: 10.32 MB / 408.1 MB, free: 12.23 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002028/0.3706, allocations: 224.8 kB / 408.3 MB, free: 11.96 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.911/2.282, allocations: 7.109 kB / 408.3 MB, free: 11.96 MB / 318.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