Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",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.002324/0.002324, allocations: 107.7 kB / 16.92 MB, free: 6.145 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.003202/0.003202, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.603/1.603, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001573, allocations: 43.55 kB / 300.7 MB, free: 5.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1735/0.1751, allocations: 49.46 MB / 350.2 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.00555/0.1807, allocations: 2.367 MB / 352.5 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002287/0.1831, allocations: 0.8338 MB / 353.4 MB, free: 1.109 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004718/0.1836, allocations: 11.94 kB / 353.4 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005222/0.1842, allocations: 51.58 kB / 353.4 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004767/0.1847, allocations: 63.48 kB / 353.5 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001/0.1857, allocations: 199.5 kB / 353.7 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007452/0.1864, allocations: 399.5 kB / 354.1 MB, free: 408 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003216/0.1868, allocations: 99.5 kB / 354.2 MB, free: 308 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00042/0.1872, allocations: 163.4 kB / 354.3 MB, free: 144 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004201/0.1876, allocations: 179.3 kB / 354.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.91e-05/0.1877, allocations: 32 kB / 354.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.013e-05/0.1878, allocations: 36 kB / 354.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001701/0.188, allocations: 111.6 kB / 354.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002057/0.1882, allocations: 163.1 kB / 354.8 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004713/0.1887, allocations: 355 kB / 355.2 MB, free: 15.28 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.1887, allocations: 0 / 355.2 MB, free: 15.28 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1887, allocations: 4 kB / 355.2 MB, free: 15.28 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.029e-05/0.1887, allocations: 0 / 355.2 MB, free: 15.28 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001304/0.19, allocations: 0.6743 MB / 355.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.1901, allocations: 8.031 kB / 355.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.507e-05/0.1902, allocations: 74.66 kB / 355.9 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/0.1903, allocations: 44.47 kB / 356 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000507/0.1908, allocations: 299.2 kB / 356.3 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002526/0.1911, allocations: 146.2 kB / 356.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.27e-05/0.1912, allocations: 28.38 kB / 356.5 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001296/0.1925, allocations: 0.5776 MB / 357 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.109e-05/0.1925, allocations: 0 / 357 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.59e-05/0.1926, allocations: 12 kB / 357 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.429e-05/0.1926, allocations: 8 kB / 357 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001547/0.1942, allocations: 0.5152 MB / 357.6 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001906/0.1961, allocations: 1.018 MB / 358.6 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001643/0.1977, allocations: 0.4946 MB / 359.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006434/0.1984, allocations: 270.3 kB / 359.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.197e-05/0.1985, allocations: 8.141 kB / 359.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.025e-05/0.1985, allocations: 46.48 kB / 359.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.645e-06/0.1985, allocations: 0 / 359.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03831/0.2368, allocations: 5.75 MB / 365.1 MB, free: 5.031 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001411/0.237, allocations: 149 kB / 365.3 MB, free: 4.855 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003579/0.2374, allocations: 258.5 kB / 365.5 MB, free: 4.594 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.622e-05/0.2375, allocations: 37.7 kB / 365.6 MB, free: 4.551 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/0.2376, allocations: 149.5 kB / 365.7 MB, free: 4.402 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001988/0.2378, allocations: 193.3 kB / 365.9 MB, free: 4.211 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002841/0.2381, allocations: 114.6 kB / 366 MB, free: 4.094 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000188/0.2383, allocations: 350.8 kB / 366.4 MB, free: 3.742 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001556/0.2399, allocations: 0.611 MB / 367 MB, free: 3.133 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001705/0.2416, allocations: 0.8002 MB / 367.8 MB, free: 2.254 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003033/0.2446, allocations: 1.244 MB / 369 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.2446, allocations: 4 kB / 369 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.2581/0.5028, allocations: 1.4 MB / 370.4 MB, free: 26.13 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.881e-05/0.5029, allocations: 7.969 kB / 370.4 MB, free: 26.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.098e-05/0.5029, allocations: 5.438 kB / 370.4 MB, free: 26.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.136e-05/0.5029, allocations: 12.25 kB / 370.5 MB, free: 26.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001455/0.5044, allocations: 207.8 kB / 370.7 MB, free: 26.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.267e-05/0.5045, allocations: 15.91 kB / 370.7 MB, free: 26.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001127/0.5056, allocations: 97.3 kB / 370.8 MB, free: 26.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001072/0.5057, allocations: 32.67 kB / 370.8 MB, free: 26.13 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.0005414/0.5063, allocations: 189.3 kB / 371 MB, free: 26.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005682/0.5068, allocations: 161 kB / 371.1 MB, free: 25.99 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002414/0.5071, allocations: 66.94 kB / 371.2 MB, free: 25.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.483e-05/0.5071, allocations: 8.797 kB / 371.2 MB, free: 25.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.076e-05/0.5071, allocations: 1.938 kB / 371.2 MB, free: 25.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.959e-05/0.5072, allocations: 5.203 kB / 371.2 MB, free: 25.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006969/0.5141, allocations: 2.188 MB / 373.4 MB, free: 25.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.675e-05/0.5142, allocations: 17.44 kB / 373.4 MB, free: 25.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009508/0.5152, allocations: 180.3 kB / 373.6 MB, free: 25.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.064e-05/0.5153, allocations: 14.97 kB / 373.6 MB, free: 25.06 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.637e-05/0.5153, allocations: 24.05 kB / 373.6 MB, free: 25.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.052e-05/0.5154, allocations: 20.09 kB / 373.7 MB, free: 25.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-05/0.5154, allocations: 25.56 kB / 373.7 MB, free: 25.04 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00378/0.5192, allocations: 1.557 MB / 375.2 MB, free: 24.12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003347/0.5195, allocations: 181.3 kB / 375.4 MB, free: 23.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000104/0.5196, allocations: 25.7 kB / 375.4 MB, free: 23.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006671/0.5203, allocations: 85.19 kB / 375.5 MB, free: 23.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003111/0.5206, allocations: 93.48 kB / 375.6 MB, free: 23.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.845e-05/0.5207, allocations: 30.12 kB / 375.6 MB, free: 23.92 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003266/0.5211, allocations: 186 kB / 375.8 MB, free: 23.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5211, allocations: 0 / 375.8 MB, free: 23.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000888/0.522, allocations: 128.1 kB / 376 MB, free: 23.79 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.004009/0.526, allocations: 2.142 MB / 378.1 MB, free: 22.3 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003554/0.5296, allocations: 1.15 MB / 379.2 MB, free: 21.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.399e-05/0.5296, allocations: 2.781 kB / 379.2 MB, free: 21.86 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00121/0.5308, allocations: 339.3 kB / 379.6 MB, free: 21.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00116/0.532, allocations: 149 kB / 379.7 MB, free: 21.72 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01441/0.5464, allocations: 6.912 MB / 386.6 MB, free: 17.22 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004839/0.5469, allocations: 0.8289 MB / 387.5 MB, free: 16.51 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006925/0.5476, allocations: 93.86 kB / 387.6 MB, free: 16.47 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003621/0.548, allocations: 122.9 kB / 387.7 MB, free: 16.39 MB / 302.1 MB Notification: Performance of SimCode: time 9.22e-07/0.548, allocations: 1.188 kB / 387.7 MB, free: 16.39 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03821/0.5862, allocations: 11.59 MB / 399.3 MB, free: 8.234 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.07/10.65, allocations: 3.75 kB / 399.3 MB, free: 8.234 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches