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: translateModel(Modelica.Electrical.Digital.Examples.WiredX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wiredX.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.WiredX") translateModel(Modelica.Electrical.Digital.Examples.WiredX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wiredX.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.WiredX") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001626/0.001626, allocations: 195.3 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 226.5 MB / 244.7 MB, free: 6.434 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000763/0.000763, allocations: 95.78 kB / 296.8 MB, free: 6.664 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002122/0.0002122, allocations: 8 kB / 356.7 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.196/0.1962, allocations: 51.3 MB / 408 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.001268/0.1975, allocations: 1.47 MB / 409.5 MB, free: 26.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001341/0.1989, allocations: 0.9279 MB / 410.4 MB, free: 25.28 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.575e-05/0.1989, allocations: 0 / 410.4 MB, free: 25.28 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.643e-05/0.199, allocations: 19.84 kB / 410.5 MB, free: 25.26 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.058e-05/0.1991, allocations: 27.78 kB / 410.5 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002306/0.1994, allocations: 77.22 kB / 410.6 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001736/0.1995, allocations: 231.4 kB / 410.8 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001042/0.1996, allocations: 41.3 kB / 410.8 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000495/0.2001, allocations: 0.6356 MB / 411.5 MB, free: 24.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001326/0.2003, allocations: 164.3 kB / 411.6 MB, free: 24.09 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.795e-05/0.2004, allocations: 8 kB / 411.6 MB, free: 24.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.023e-05/0.2004, allocations: 9.156 kB / 411.6 MB, free: 24.08 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.885e-05/0.2005, allocations: 131.5 kB / 411.8 MB, free: 23.95 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001464/0.2007, allocations: 240.2 kB / 412 MB, free: 23.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002925/0.201, allocations: 0.5941 MB / 412.6 MB, free: 23.11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.201, allocations: 0 / 412.6 MB, free: 23.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.201, allocations: 0 / 412.6 MB, free: 23.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.201, allocations: 0 / 412.6 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.0006311/0.2016, allocations: 1.038 MB / 413.6 MB, free: 21.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.907e-05/0.2017, allocations: 12.03 kB / 413.6 MB, free: 21.96 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.838e-05/0.2017, allocations: 76.56 kB / 413.7 MB, free: 21.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002707/0.202, allocations: 404.9 kB / 414.1 MB, free: 21.46 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.408e-05/0.2021, allocations: 8.562 kB / 414.1 MB, free: 21.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.391e-05/0.2021, allocations: 21.09 kB / 414.1 MB, free: 21.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004084/0.2025, allocations: 258.6 kB / 414.4 MB, free: 21.17 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-06/0.2026, allocations: 4 kB / 414.4 MB, free: 21.17 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.683e-05/0.2026, allocations: 4 kB / 414.4 MB, free: 21.16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.2026, allocations: 8 kB / 414.4 MB, free: 21.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002411/0.2029, allocations: 132.2 kB / 414.5 MB, free: 21.03 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008013/0.2037, allocations: 0.7388 MB / 415.3 MB, free: 20.24 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002814/0.204, allocations: 198.4 kB / 415.5 MB, free: 20.04 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002348/0.2042, allocations: 176.8 kB / 415.7 MB, free: 19.86 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.642e-05/0.2042, allocations: 3.938 kB / 415.7 MB, free: 19.86 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003992/0.2046, allocations: 386.8 kB / 416 MB, free: 19.44 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.442e-06/0.2046, allocations: 0 / 416 MB, free: 19.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.001115/0.2058, allocations: 0.9257 MB / 417 MB, free: 18.46 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.91e-05/0.2059, allocations: 285 kB / 417.2 MB, free: 18.12 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009072/0.2068, allocations: 0.9529 MB / 418.2 MB, free: 17.16 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4e-05/0.2068, allocations: 41.69 kB / 418.2 MB, free: 17.11 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.085e-05/0.2069, allocations: 126 kB / 418.4 MB, free: 16.98 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.702e-05/0.2069, allocations: 67.19 kB / 418.4 MB, free: 16.91 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.385e-05/0.207, allocations: 8 kB / 418.4 MB, free: 16.91 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.107e-05/0.207, allocations: 338.8 kB / 418.8 MB, free: 16.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002142/0.2073, allocations: 124.2 kB / 418.9 MB, free: 16.45 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000216/0.2075, allocations: 161.3 kB / 419 MB, free: 16.28 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004646/0.2079, allocations: 0.6981 MB / 419.7 MB, free: 15.46 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.208, allocations: 3.938 kB / 419.7 MB, free: 15.46 MB / 298.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0007849/0.2087, allocations: 0.7527 MB / 420.5 MB, free: 14.65 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.143e-05/0.2088, allocations: 241.6 kB / 420.7 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.2088, allocations: 7.984 kB / 420.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.175e-05/0.2089, allocations: 0 / 420.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.43e-05/0.2089, allocations: 7.938 kB / 420.7 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.2089, allocations: 4 kB / 420.7 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002232/0.2091, allocations: 23.98 kB / 420.8 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.906e-05/0.2092, allocations: 112.1 kB / 420.9 MB, free: 14.21 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.0004174/0.2096, allocations: 0.6163 MB / 421.5 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.76e-05/0.2097, allocations: 79.06 kB / 421.6 MB, free: 13.46 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001426/0.2099, allocations: 130.8 kB / 421.7 MB, free: 13.33 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.2099, allocations: 0 / 421.7 MB, free: 13.33 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2099, allocations: 4 kB / 421.7 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.2099, allocations: 0 / 421.7 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001324/0.2112, allocations: 1.429 MB / 423.1 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.2112, allocations: 3.984 kB / 423.1 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.288e-05/0.2113, allocations: 11.94 kB / 423.1 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.2113, allocations: 4 kB / 423.2 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.336e-05/0.2113, allocations: 27.98 kB / 423.2 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.2113, allocations: 3.938 kB / 423.2 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.2113, allocations: 3.938 kB / 423.2 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008922/0.2122, allocations: 0.9609 MB / 424.1 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004276/0.2127, allocations: 419.8 kB / 424.6 MB, free: 10.28 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.513e-05/0.2128, allocations: 23.98 kB / 424.6 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002164/0.213, allocations: 23.98 kB / 424.6 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/0.2131, allocations: 59.92 kB / 424.7 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.444e-05/0.2132, allocations: 107.9 kB / 424.8 MB, free: 10.07 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000723/0.2139, allocations: 0.6899 MB / 425.5 MB, free: 9.379 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2139, allocations: 0 / 425.5 MB, free: 9.379 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003455/0.2143, allocations: 103.8 kB / 425.6 MB, free: 9.277 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.0001388/0.2144, allocations: 143.2 kB / 425.7 MB, free: 9.125 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006942/0.2151, allocations: 0.8779 MB / 426.6 MB, free: 8.148 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.2152, allocations: 0 / 426.6 MB, free: 8.148 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004263/0.2156, allocations: 0.7491 MB / 427.3 MB, free: 7.301 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008209/0.2164, allocations: 239.8 kB / 427.6 MB, free: 7.07 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001524/0.218, allocations: 1.509 MB / 429.1 MB, free: 5.527 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003884/0.2184, allocations: 0.9479 MB / 430 MB, free: 4.555 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.397e-05/0.2185, allocations: 55.33 kB / 430.1 MB, free: 4.5 MB / 298.7 MB Notification: Performance of SimCode: time 3.5e-07/0.2185, allocations: 0 / 430.1 MB, free: 4.5 MB / 298.7 MB Notification: Performance of Templates: time 0.005701/0.2242, allocations: 5.352 MB / 435.4 MB, free: 15.14 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.WiredX.makefile (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 & ./Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.WiredX --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.WiredX_res.mat","/var/lib/jenkins/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