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.00146/0.001459, allocations: 104.5 kB / 16.92 MB, free: 6.199 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.001631/0.001631, allocations: 191.4 kB / 17.85 MB, free: 5.301 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.661/1.661, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 46.84 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1703/0.1718, allocations: 49.45 MB / 350.2 MB, free: 4.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.006957/0.1788, allocations: 2.304 MB / 352.5 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002171/0.1811, allocations: 0.7754 MB / 353.2 MB, free: 1.211 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002485/0.1813, allocations: 4 kB / 353.2 MB, free: 1.207 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005371/0.1819, allocations: 51.56 kB / 353.3 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002932/0.1822, allocations: 59.56 kB / 353.3 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008063/0.1831, allocations: 167 kB / 353.5 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006113/0.1837, allocations: 375.6 kB / 353.9 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003475/0.184, allocations: 99.23 kB / 354 MB, free: 484 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003584/0.1844, allocations: 155.4 kB / 354.1 MB, free: 328 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003369/0.1848, allocations: 171.3 kB / 354.3 MB, free: 156 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.738e-05/0.1849, allocations: 39.98 kB / 354.3 MB, free: 116 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.121e-05/0.1849, allocations: 36 kB / 354.4 MB, free: 80 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001888/0.1851, allocations: 87.84 kB / 354.5 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002038/0.1853, allocations: 147.2 kB / 354.6 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004929/0.1858, allocations: 319.2 kB / 354.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.1859, allocations: 0 / 354.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1859, allocations: 0 / 354.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.776e-06/0.1859, allocations: 0 / 354.9 MB, free: 15.54 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.00147/0.1874, allocations: 0.6123 MB / 355.5 MB, free: 14.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.1874, allocations: 8.031 kB / 355.5 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001046/0.1875, allocations: 74.66 kB / 355.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001019/0.1876, allocations: 40.56 kB / 355.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004343/0.1881, allocations: 264.4 kB / 355.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002516/0.1883, allocations: 134.2 kB / 356 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.62e-05/0.1884, allocations: 28.36 kB / 356.1 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001426/0.1899, allocations: 0.5544 MB / 356.6 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.748e-05/0.1899, allocations: 3.938 kB / 356.6 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.885e-05/0.19, allocations: 16 kB / 356.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.545e-05/0.19, allocations: 8 kB / 356.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001539/0.1915, allocations: 0.5074 MB / 357.1 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00188/0.1934, allocations: 1.002 MB / 358.2 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001889/0.1953, allocations: 0.5142 MB / 358.7 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000695/0.196, allocations: 259.3 kB / 358.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.715e-05/0.1961, allocations: 4 kB / 358.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.24e-05/0.1962, allocations: 46.55 kB / 359 MB, free: 11.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 3.777e-06/0.1962, allocations: 3.938 kB / 359 MB, free: 11.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03887/0.2351, allocations: 5.696 MB / 364.7 MB, free: 5.492 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001314/0.2352, allocations: 152.8 kB / 364.8 MB, free: 5.312 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002609/0.2355, allocations: 199.1 kB / 365 MB, free: 5.109 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.207e-05/0.2356, allocations: 37.7 kB / 365 MB, free: 5.066 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001328/0.2357, allocations: 141.5 kB / 365.2 MB, free: 4.926 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002507/0.236, allocations: 189.3 kB / 365.4 MB, free: 4.738 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003428/0.2364, allocations: 110.6 kB / 365.5 MB, free: 4.621 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001948/0.2366, allocations: 346.8 kB / 365.8 MB, free: 4.273 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001675/0.2382, allocations: 0.611 MB / 366.4 MB, free: 3.664 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001893/0.2401, allocations: 0.8002 MB / 367.2 MB, free: 2.785 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003254/0.2434, allocations: 1.251 MB / 368.5 MB, free: 1.457 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/0.2434, allocations: 3.938 kB / 368.5 MB, free: 1.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003709/0.2472, allocations: 1.394 MB / 369.9 MB, free: 52 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.864e-05/0.2472, allocations: 14.8 kB / 369.9 MB, free: 40 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.944e-05/0.2473, allocations: 4 kB / 369.9 MB, free: 36 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.556e-05/0.2473, allocations: 12 kB / 369.9 MB, free: 24 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.3239/0.5713, allocations: 202.2 kB / 370.1 MB, free: 26.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.903e-05/0.5714, allocations: 13.92 kB / 370.1 MB, free: 26.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001197/0.5726, allocations: 100.5 kB / 370.2 MB, free: 26.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000118/0.5727, allocations: 25.94 kB / 370.2 MB, free: 26.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.0005353/0.5732, allocations: 187 kB / 370.4 MB, free: 26.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005709/0.5738, allocations: 153.1 kB / 370.6 MB, free: 26.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002035/0.574, allocations: 62.36 kB / 370.6 MB, free: 26.19 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-05/0.5741, allocations: 9.047 kB / 370.6 MB, free: 26.19 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.711e-05/0.5741, allocations: 2.094 kB / 370.6 MB, free: 26.19 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.276e-05/0.5741, allocations: 6.656 kB / 370.7 MB, free: 26.19 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005703/0.5798, allocations: 2.167 MB / 372.8 MB, free: 25.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.243e-05/0.5799, allocations: 9.906 kB / 372.8 MB, free: 25.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009957/0.5809, allocations: 182.3 kB / 373 MB, free: 25.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.722e-05/0.5809, allocations: 16.53 kB / 373 MB, free: 25.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.433e-05/0.581, allocations: 28.52 kB / 373.1 MB, free: 25.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.422e-05/0.5811, allocations: 20.83 kB / 373.1 MB, free: 25.44 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.45e-05/0.5811, allocations: 18.53 kB / 373.1 MB, free: 25.43 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003754/0.5849, allocations: 1.557 MB / 374.6 MB, free: 24.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002637/0.5851, allocations: 163.7 kB / 374.8 MB, free: 24.39 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.717e-05/0.5852, allocations: 27.83 kB / 374.8 MB, free: 24.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006435/0.5859, allocations: 75.33 kB / 374.9 MB, free: 24.37 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002408/0.5861, allocations: 101 kB / 375 MB, free: 24.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.754e-05/0.5862, allocations: 29.45 kB / 375 MB, free: 24.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001762/0.5864, allocations: 137.5 kB / 375.2 MB, free: 24.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5864, allocations: 0 / 375.2 MB, free: 24.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008676/0.5873, allocations: 122.4 kB / 375.3 MB, free: 24.21 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.004008/0.5913, allocations: 2.127 MB / 377.4 MB, free: 22.72 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003544/0.5949, allocations: 1.153 MB / 378.6 MB, free: 22.29 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.042e-05/0.5949, allocations: 0 / 378.6 MB, free: 22.29 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001325/0.5962, allocations: 347.4 kB / 378.9 MB, free: 22.19 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001267/0.5975, allocations: 142.3 kB / 379 MB, free: 22.15 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01591/0.6134, allocations: 6.782 MB / 385.8 MB, free: 17.7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006273/0.6142, allocations: 0.8086 MB / 386.6 MB, free: 16.99 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0008485/0.615, allocations: 93.38 kB / 386.7 MB, free: 16.95 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005052/0.6155, allocations: 119.6 kB / 386.8 MB, free: 16.87 MB / 302.1 MB Notification: Performance of SimCode: time 3.616e-06/0.6156, allocations: 0 / 386.8 MB, free: 16.87 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04018/0.6558, allocations: 11.17 MB / 398 MB, free: 9.484 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.736/10.39, allocations: 14.53 kB / 398 MB, free: 9.473 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