Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.WiredX.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001029/0.001029, allocations: 198.7 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.269/1.269, allocations: 226.5 MB / 244.7 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007452/0.0007454, allocations: 99.22 kB / 296.7 MB, free: 6.711 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002141/0.0002142, allocations: 8 kB / 356.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1825/0.1827, allocations: 51.29 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.001258/0.184, allocations: 1.474 MB / 409.6 MB, free: 26.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001361/0.1854, allocations: 0.9223 MB / 410.5 MB, free: 25.28 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.666e-05/0.1855, allocations: 0 / 410.5 MB, free: 25.28 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000101/0.1856, allocations: 19.84 kB / 410.5 MB, free: 25.26 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.156e-05/0.1856, allocations: 28.34 kB / 410.6 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002395/0.1859, allocations: 76.42 kB / 410.6 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001806/0.1861, allocations: 232.2 kB / 410.9 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001047/0.1862, allocations: 45.33 kB / 410.9 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000518/0.1867, allocations: 0.6367 MB / 411.6 MB, free: 24.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000123/0.1869, allocations: 163.6 kB / 411.7 MB, free: 24.09 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.879e-05/0.1869, allocations: 8 kB / 411.7 MB, free: 24.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.114e-05/0.187, allocations: 8 kB / 411.7 MB, free: 24.08 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.502e-05/0.1871, allocations: 136.5 kB / 411.9 MB, free: 23.95 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001483/0.1872, allocations: 240.2 kB / 412.1 MB, free: 23.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003064/0.1875, allocations: 0.5905 MB / 412.7 MB, free: 23.11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.1876, allocations: 0 / 412.7 MB, free: 23.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1876, allocations: 1.938 kB / 412.7 MB, free: 23.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.1876, allocations: 0 / 412.7 MB, free: 23.11 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.0006552/0.1882, allocations: 1.037 MB / 413.7 MB, free: 21.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.1883, allocations: 12.03 kB / 413.7 MB, free: 21.96 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.26e-05/0.1883, allocations: 57.95 kB / 413.8 MB, free: 21.9 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.061e-05/0.1884, allocations: 80 kB / 413.9 MB, free: 21.82 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002873/0.1887, allocations: 384.3 kB / 414.2 MB, free: 21.41 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.201e-05/0.1888, allocations: 12.56 kB / 414.3 MB, free: 21.4 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.457e-05/0.1888, allocations: 28.06 kB / 414.3 MB, free: 21.37 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004212/0.1892, allocations: 246.3 kB / 414.5 MB, free: 21.12 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.1892, allocations: 0 / 414.5 MB, free: 21.12 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.512e-05/0.1893, allocations: 8 kB / 414.5 MB, free: 21.11 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.1893, allocations: 4 kB / 414.5 MB, free: 21.11 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002449/0.1895, allocations: 136.2 kB / 414.7 MB, free: 20.98 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008049/0.1904, allocations: 0.7387 MB / 415.4 MB, free: 20.19 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002923/0.1907, allocations: 206.4 kB / 415.6 MB, free: 19.98 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002343/0.1909, allocations: 180.7 kB / 415.8 MB, free: 19.8 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.86e-05/0.1909, allocations: 0 / 415.8 MB, free: 19.8 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004122/0.1914, allocations: 383.5 kB / 416.2 MB, free: 19.39 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.533e-06/0.1914, allocations: 0 / 416.2 MB, free: 19.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.001123/0.1925, allocations: 0.921 MB / 417.1 MB, free: 18.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.776e-05/0.1926, allocations: 289 kB / 417.4 MB, free: 18.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008889/0.1935, allocations: 0.9529 MB / 418.3 MB, free: 17.1 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.661e-05/0.1935, allocations: 37.7 kB / 418.4 MB, free: 17.06 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.025e-05/0.1936, allocations: 126 kB / 418.5 MB, free: 16.93 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.603e-05/0.1936, allocations: 67.19 kB / 418.5 MB, free: 16.86 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.219e-05/0.1937, allocations: 8 kB / 418.6 MB, free: 16.86 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.868e-05/0.1937, allocations: 338.8 kB / 418.9 MB, free: 16.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002102/0.1939, allocations: 120.2 kB / 419 MB, free: 16.4 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000216/0.1942, allocations: 165.3 kB / 419.2 MB, free: 16.23 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004743/0.1946, allocations: 0.7027 MB / 419.9 MB, free: 15.41 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.1947, allocations: 0 / 419.9 MB, free: 15.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0007864/0.1954, allocations: 0.7567 MB / 420.6 MB, free: 14.6 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.232e-05/0.1955, allocations: 245.5 kB / 420.9 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.1955, allocations: 3.938 kB / 420.9 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.1956, allocations: 0 / 420.9 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.966e-05/0.1956, allocations: 19.98 kB / 420.9 MB, free: 14.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.1956, allocations: 3.984 kB / 420.9 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002385/0.1958, allocations: 31.89 kB / 420.9 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.843e-05/0.1959, allocations: 108.1 kB / 421 MB, free: 14.14 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 34 ($PRE.bUF3S1.inertialDelaySensitive.y,$PRE.bUF3S2.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,$PRE.bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,$PRE.bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.auxiliary[1],wiredX.auxiliary[2],wiredX.y,$PRE.wiredX.auxiliary[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 8 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004194/0.1964, allocations: 0.6085 MB / 421.6 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.62e-05/0.1964, allocations: 75.16 kB / 421.7 MB, free: 13.4 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001486/0.1966, allocations: 130.9 kB / 421.8 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.1966, allocations: 4 kB / 421.8 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1966, allocations: 0 / 421.8 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.1966, allocations: 0 / 421.8 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001361/0.198, allocations: 1.425 MB / 423.3 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.198, allocations: 4 kB / 423.3 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.448e-05/0.198, allocations: 11.92 kB / 423.3 MB, free: 11.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.198, allocations: 0 / 423.3 MB, free: 11.72 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.558e-05/0.1981, allocations: 35.91 kB / 423.3 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.1981, allocations: 4 kB / 423.3 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1981, allocations: 0 / 423.3 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009801/0.1991, allocations: 0.957 MB / 424.3 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004603/0.1996, allocations: 415.8 kB / 424.7 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.008e-05/0.1997, allocations: 27.98 kB / 424.7 MB, free: 10.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002266/0.1999, allocations: 27.98 kB / 424.7 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001421/0.2, allocations: 55.92 kB / 424.8 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.604e-05/0.2001, allocations: 107.9 kB / 424.9 MB, free: 10.02 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006865/0.2008, allocations: 0.6976 MB / 425.6 MB, free: 9.32 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2008, allocations: 3.938 kB / 425.6 MB, free: 9.316 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003337/0.2012, allocations: 99.84 kB / 425.7 MB, free: 9.219 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 29 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.y,wiredX.auxiliary[1],wiredX.auxiliary[2]) * Number of discrete states: 27 (e_table2.y,x_table2.y,bUF3S2.yy,bUF3S2.nextstate,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.t_next,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.y_old,$whenCondition4,$whenCondition3,bUF3S2.inertialDelaySensitive.x,e_table1.y,x_table1.y,bUF3S1.yy,bUF3S1.nextstate,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.t_next,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S1.inertialDelaySensitive.x,wiredX.auxiliary[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 8 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001163/0.2023, allocations: 1.533 MB / 427.2 MB, free: 7.605 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007127/0.2031, allocations: 0.8913 MB / 428.1 MB, free: 6.617 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.2031, allocations: 0 / 428.1 MB, free: 6.617 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004248/0.2035, allocations: 0.7532 MB / 428.9 MB, free: 5.766 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009865/0.2045, allocations: 238 kB / 429.1 MB, free: 5.539 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003556/0.2081, allocations: 3.067 MB / 432.2 MB, free: 2.41 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000377/0.2085, allocations: 0.9442 MB / 433.1 MB, free: 1.438 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000134/0.2086, allocations: 95.31 kB / 433.2 MB, free: 1.344 MB / 298.7 MB Notification: Performance of SimCode: time 2.61e-07/0.2086, allocations: 7.875 kB / 433.2 MB, free: 1.336 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.33/3.539, allocations: 4.453 MB / 437.7 MB, free: 12.88 MB / 314.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.WiredX.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.WiredX_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_WiredX_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_WiredX.fmu > Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.WiredX_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/WiredX/WiredX.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.WiredX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches