Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001158/0.001159, allocations: 114.3 kB / 16.63 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001113/0.001113, allocations: 190 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001084/0.001084, allocations: 46.83 kB / 300.2 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09416/0.09527, allocations: 49.45 MB / 349.7 MB, free: 4.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004193/0.0995, allocations: 2.354 MB / 352 MB, free: 2.289 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001611/0.1011, allocations: 0.7677 MB / 352.8 MB, free: 1.516 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000266/0.1014, allocations: 7.938 kB / 352.8 MB, free: 1.508 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003673/0.1018, allocations: 35.77 kB / 352.8 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003104/0.1022, allocations: 47.69 kB / 352.9 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005987/0.1028, allocations: 157.6 kB / 353 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005376/0.1033, allocations: 363.7 kB / 353.4 MB, free: 0.918 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002711/0.1036, allocations: 99.22 kB / 353.5 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004182/0.104, allocations: 159.4 kB / 353.6 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002922/0.1043, allocations: 175.3 kB / 353.8 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.151e-05/0.1044, allocations: 32 kB / 353.8 MB, free: 472 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.859e-05/0.1045, allocations: 32 kB / 353.9 MB, free: 440 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001274/0.1046, allocations: 99.72 kB / 354 MB, free: 340 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000192/0.1048, allocations: 151.2 kB / 354.1 MB, free: 188 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004953/0.1053, allocations: 315.2 kB / 354.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.1054, allocations: 0 / 354.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.1054, allocations: 0 / 354.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.027e-05/0.1054, allocations: 0 / 354.4 MB, free: 15.88 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.001531/0.1069, allocations: 0.6162 MB / 355 MB, free: 15.21 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/0.107, allocations: 8.031 kB / 355.1 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.223e-05/0.1071, allocations: 70.72 kB / 355.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.62e-05/0.1072, allocations: 36.56 kB / 355.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003688/0.1076, allocations: 268.3 kB / 355.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001883/0.1078, allocations: 138.2 kB / 355.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.157e-05/0.1078, allocations: 28.38 kB / 355.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001199/0.1091, allocations: 0.5622 MB / 356.1 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.479e-05/0.1091, allocations: 3.938 kB / 356.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.928e-05/0.1091, allocations: 12 kB / 356.2 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/0.1092, allocations: 8 kB / 356.2 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001424/0.1106, allocations: 0.5113 MB / 356.7 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001556/0.1122, allocations: 0.9943 MB / 357.7 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001522/0.1137, allocations: 0.5024 MB / 358.2 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005992/0.1143, allocations: 263.4 kB / 358.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.308e-05/0.1144, allocations: 8 kB / 358.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.146e-05/0.1144, allocations: 42.5 kB / 358.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.713e-06/0.1144, allocations: 0 / 358.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03787/0.1523, allocations: 5.7 MB / 364.2 MB, free: 5.836 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001196/0.1525, allocations: 148.9 kB / 364.3 MB, free: 5.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000237/0.1527, allocations: 199.1 kB / 364.5 MB, free: 5.457 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001026/0.1528, allocations: 37.7 kB / 364.6 MB, free: 5.414 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.351e-05/0.1529, allocations: 145.5 kB / 364.7 MB, free: 5.27 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002076/0.1531, allocations: 189.3 kB / 364.9 MB, free: 5.082 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002969/0.1534, allocations: 114.6 kB / 365 MB, free: 4.961 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.1536, allocations: 346.8 kB / 365.3 MB, free: 4.613 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001802/0.1554, allocations: 0.6149 MB / 366 MB, free: 4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001684/0.1571, allocations: 0.8002 MB / 366.8 MB, free: 3.125 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002868/0.16, allocations: 1.252 MB / 368 MB, free: 1.797 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.087e-06/0.16, allocations: 7.938 kB / 368 MB, free: 1.789 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003431/0.1634, allocations: 1.39 MB / 369.4 MB, free: 400 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.555e-05/0.1635, allocations: 12.03 kB / 369.4 MB, free: 388 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.83e-05/0.1635, allocations: 8 kB / 369.4 MB, free: 380 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.294e-05/0.1635, allocations: 8 kB / 369.4 MB, free: 372 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001262/0.1648, allocations: 207.7 kB / 369.6 MB, free: 164 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.95e-05/0.1648, allocations: 11.94 kB / 369.6 MB, free: 152 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009242/0.1658, allocations: 104.1 kB / 369.7 MB, free: 48 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/0.1659, allocations: 31.98 kB / 369.8 MB, free: 16 kB / 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.173/0.3388, allocations: 178.7 kB / 370 MB, free: 26.45 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004162/0.3393, allocations: 153.8 kB / 370.1 MB, free: 26.42 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001609/0.3394, allocations: 61.33 kB / 370.2 MB, free: 26.41 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.499e-05/0.3395, allocations: 8.469 kB / 370.2 MB, free: 26.41 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.171e-05/0.3395, allocations: 1.984 kB / 370.2 MB, free: 26.41 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.16e-05/0.3395, allocations: 3.906 kB / 370.2 MB, free: 26.41 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004928/0.3444, allocations: 2.167 MB / 372.3 MB, free: 25.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.666e-05/0.3445, allocations: 12.83 kB / 372.4 MB, free: 25.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007856/0.3453, allocations: 186.5 kB / 372.5 MB, free: 25.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.262e-05/0.3453, allocations: 17.56 kB / 372.6 MB, free: 25.71 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.252e-05/0.3454, allocations: 24.16 kB / 372.6 MB, free: 25.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.239e-05/0.3454, allocations: 19.64 kB / 372.6 MB, free: 25.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.454e-05/0.3454, allocations: 16.08 kB / 372.6 MB, free: 25.69 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003175/0.3486, allocations: 1.555 MB / 374.2 MB, free: 24.78 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002296/0.3488, allocations: 163.8 kB / 374.3 MB, free: 24.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.336e-05/0.3489, allocations: 27.03 kB / 374.4 MB, free: 24.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005931/0.3495, allocations: 77.66 kB / 374.4 MB, free: 24.62 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000236/0.3498, allocations: 94.7 kB / 374.5 MB, free: 24.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.097e-05/0.3499, allocations: 29.55 kB / 374.6 MB, free: 24.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001474/0.35, allocations: 140.9 kB / 374.7 MB, free: 24.49 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.232e-06/0.35, allocations: 4 kB / 374.7 MB, free: 24.49 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007322/0.3508, allocations: 121.5 kB / 374.8 MB, free: 24.47 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.003366/0.3541, allocations: 2.134 MB / 376.9 MB, free: 22.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003058/0.3572, allocations: 1.152 MB / 378.1 MB, free: 22.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 9.758e-06/0.3572, allocations: 1.188 kB / 378.1 MB, free: 22.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001034/0.3583, allocations: 341 kB / 378.4 MB, free: 22.45 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000948/0.3592, allocations: 136.3 kB / 378.6 MB, free: 22.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01263/0.3719, allocations: 6.928 MB / 385.5 MB, free: 17.81 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003333/0.3722, allocations: 0.8132 MB / 386.3 MB, free: 17.1 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006248/0.3729, allocations: 92.02 kB / 386.4 MB, free: 17.06 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003693/0.3732, allocations: 116.5 kB / 386.5 MB, free: 16.99 MB / 302.1 MB Notification: Performance of SimCode: time 1.222e-06/0.3732, allocations: 0 / 386.5 MB, free: 16.99 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1055/0.4788, allocations: 10.91 MB / 397.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001717/0.479, allocations: 214.1 kB / 397.6 MB, free: 9.922 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.261/2.74, allocations: 3.094 kB / 397.6 MB, free: 9.922 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches