Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Electrical.Digital.Examples.WiredX") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001322/0.001322, allocations: 105.7 kB / 18.45 MB, free: 4.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001609/0.001609, allocations: 208.9 kB / 19.4 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.281/2.281, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002876/0.002877, allocations: 71.88 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3972/0.4001, allocations: 50.52 MB / 409.9 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.005017/0.4051, allocations: 1.825 MB / 411.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003635/0.4088, allocations: 0.9822 MB / 412.7 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001856/0.4091, allocations: 4 kB / 412.7 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000237/0.4093, allocations: 23.72 kB / 412.8 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002115/0.4096, allocations: 35.72 kB / 412.8 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005864/0.4102, allocations: 99.75 kB / 412.9 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006347/0.4109, allocations: 315.4 kB / 413.2 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002254/0.4111, allocations: 53.66 kB / 413.2 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001256/0.4124, allocations: 0.7408 MB / 414 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003619/0.4128, allocations: 151.4 kB / 414.1 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001215/0.4129, allocations: 20 kB / 414.2 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001027/0.413, allocations: 20 kB / 414.2 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002357/0.4133, allocations: 139.4 kB / 414.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003681/0.4137, allocations: 242.2 kB / 414.5 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001023/0.4147, allocations: 0.7433 MB / 415.3 MB, free: 12.21 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/0.4148, allocations: 0 / 415.3 MB, free: 12.21 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.4148, allocations: 4 kB / 415.3 MB, free: 12.21 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.023e-05/0.4148, allocations: 0 / 415.3 MB, free: 12.21 MB / 334.1 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.002378/0.4172, allocations: 1.166 MB / 416.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.897e-05/0.4173, allocations: 8.031 kB / 416.5 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002177/0.4175, allocations: 80 kB / 416.5 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007811/0.4183, allocations: 384.3 kB / 416.9 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.533e-05/0.4184, allocations: 16.56 kB / 416.9 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.228e-05/0.4185, allocations: 24.31 kB / 417 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009004/0.4194, allocations: 251.4 kB / 417.2 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.542e-05/0.4195, allocations: 0 / 417.2 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.886e-05/0.4195, allocations: 8 kB / 417.2 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.649e-06/0.4195, allocations: 4 kB / 417.2 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004798/0.42, allocations: 132.2 kB / 417.3 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002069/0.4221, allocations: 0.7465 MB / 418.1 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006075/0.4227, allocations: 202.4 kB / 418.3 MB, free: 9.004 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005255/0.4233, allocations: 176.8 kB / 418.5 MB, free: 8.828 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.941e-05/0.4233, allocations: 3.984 kB / 418.5 MB, free: 8.824 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009766/0.4243, allocations: 385.8 kB / 418.8 MB, free: 8.41 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 4.007e-06/0.4244, allocations: 4 kB / 418.8 MB, free: 8.406 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002641/0.427, allocations: 0.9317 MB / 419.8 MB, free: 7.418 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001964/0.4272, allocations: 281 kB / 420.1 MB, free: 7.082 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002342/0.4296, allocations: 0.9413 MB / 421 MB, free: 6.129 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.211e-05/0.4297, allocations: 45.62 kB / 421 MB, free: 6.078 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001406/0.4299, allocations: 122 kB / 421.2 MB, free: 5.957 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000155/0.4301, allocations: 71.19 kB / 421.2 MB, free: 5.887 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003876/0.4305, allocations: 165.1 kB / 421.4 MB, free: 5.719 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001976/0.4307, allocations: 334.8 kB / 421.7 MB, free: 5.383 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004879/0.4312, allocations: 128.2 kB / 421.8 MB, free: 5.258 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004951/0.4317, allocations: 168.1 kB / 422 MB, free: 5.086 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001215/0.4329, allocations: 0.6951 MB / 422.7 MB, free: 4.277 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/0.433, allocations: 7.938 kB / 422.7 MB, free: 4.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001962/0.4349, allocations: 0.7564 MB / 423.5 MB, free: 3.457 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000224/0.4352, allocations: 245.6 kB / 423.7 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/0.4352, allocations: 0 / 423.7 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.762e-05/0.4353, allocations: 4 kB / 423.7 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.619e-05/0.4353, allocations: 7.984 kB / 423.7 MB, free: 3.156 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.439e-05/0.4354, allocations: 4 kB / 423.7 MB, free: 3.152 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004861/0.4359, allocations: 27.89 kB / 423.7 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002021/0.4361, allocations: 104.2 kB / 423.9 MB, free: 3.023 MB / 334.1 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,wiredX.auxiliary[2],wiredX.auxiliary[1],bUF3S1.inertialDelaySensitive.t_next,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.x,$PRE.bUF3S1.inertialDelaySensitive.x,bUF3S1.yy,bUF3S1.nextstate,x_table1.y,e_table1.y,bUF3S2.inertialDelaySensitive.t_next,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.x,$PRE.bUF3S2.inertialDelaySensitive.x,bUF3S2.yy,bUF3S2.nextstate,x_table2.y,e_table2.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.wiredX.auxiliary[2],wiredX.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001156/0.4373, allocations: 0.62 MB / 424.5 MB, free: 2.344 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002111/0.4375, allocations: 75.16 kB / 424.5 MB, free: 2.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000449/0.438, allocations: 130.9 kB / 424.7 MB, free: 2.133 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.438, allocations: 0 / 424.7 MB, free: 2.133 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.438, allocations: 0 / 424.7 MB, free: 2.133 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.438, allocations: 3.984 kB / 424.7 MB, free: 2.129 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003486/0.4415, allocations: 1.437 MB / 426.1 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.4416, allocations: 4 kB / 426.1 MB, free: 0.582 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.305e-05/0.4416, allocations: 4 kB / 426.1 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.653e-06/0.4416, allocations: 0 / 426.1 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.377e-05/0.4417, allocations: 31.97 kB / 426.2 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-06/0.4417, allocations: 0 / 426.2 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.4418, allocations: 0 / 426.2 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002289/0.4441, allocations: 0.9649 MB / 427.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001248/0.4453, allocations: 407.7 kB / 427.5 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001943/0.4456, allocations: 32 kB / 427.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000466/0.446, allocations: 23.98 kB / 427.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002859/0.4463, allocations: 55.88 kB / 427.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002131/0.4466, allocations: 115.8 kB / 427.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001834/0.4484, allocations: 0.6938 MB / 428.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.4484, allocations: 0 / 428.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007536/0.4492, allocations: 99.88 kB / 428.5 MB, free: 14.09 MB / 350.1 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 (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.0002992/0.4495, allocations: 143.2 kB / 428.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001656/0.4512, allocations: 0.8815 MB / 429.5 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.264e-06/0.4512, allocations: 4 kB / 429.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001063/0.4523, allocations: 0.749 MB / 430.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001948/0.4543, allocations: 274.1 kB / 430.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003803/0.4581, allocations: 1.353 MB / 431.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001055/0.4592, allocations: 0.9364 MB / 432.9 MB, free: 9.512 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002276/0.4595, allocations: 59.34 kB / 432.9 MB, free: 9.453 MB / 350.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4595, allocations: 0 / 432.9 MB, free: 9.453 MB / 350.1 MB Notification: Performance of Templates: time 0.01395/0.4734, allocations: 5.408 MB / 438.3 MB, free: 4.035 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches