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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00103/0.00103, allocations: 95.5 kB / 21.2 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001191/0.001191, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9986/0.9986, allocations: 177 MB / 204.8 MB, free: 5.551 MB / 186.7 MB " [Timeout remaining time 179] 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=5017,variableFilter="time|wiredX.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX") translateModel(Modelica.Electrical.Digital.Examples.WiredX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5017,variableFilter="time|wiredX.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.964e-06/1.964e-06, allocations: 0 / 272.9 MB, free: 1.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.836e-05/4.033e-05, allocations: 13.2 kB / 272.9 MB, free: 1.418 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.003401/0.003442, allocations: 1.79 MB / 274.7 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005006/0.008448, allocations: 0.9627 MB / 275.7 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001344/0.008582, allocations: 7.938 kB / 275.7 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001687/0.008751, allocations: 19.78 kB / 275.7 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 9.062e-05/0.008842, allocations: 43.59 kB / 275.7 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004213/0.009263, allocations: 103.8 kB / 275.8 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00034/0.009603, allocations: 291.3 kB / 276.1 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/0.009733, allocations: 37.77 kB / 276.2 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006348/0.01037, allocations: 0.7877 MB / 276.9 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001469/0.01052, allocations: 139.5 kB / 277.1 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.144e-05/0.01057, allocations: 20 kB / 277.1 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.441e-05/0.01061, allocations: 20 kB / 277.1 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000114/0.01072, allocations: 143.4 kB / 277.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001175/0.01084, allocations: 115.5 kB / 277.4 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004634/0.01131, allocations: 0.5721 MB / 277.9 MB, free: 12.36 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.01131, allocations: 0 / 277.9 MB, free: 12.36 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.01131, allocations: 0 / 277.9 MB, free: 12.36 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.008e-05/0.01132, allocations: 0 / 277.9 MB, free: 12.36 MB / 266.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.001143/0.01247, allocations: 1.263 MB / 279.2 MB, free: 11.01 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.0125, allocations: 19.98 kB / 279.2 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001193/0.01262, allocations: 92.47 kB / 279.3 MB, free: 10.9 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003023/0.01293, allocations: 349.1 kB / 279.7 MB, free: 10.53 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.188e-05/0.01296, allocations: 12.56 kB / 279.7 MB, free: 10.52 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.357e-05/0.01299, allocations: 16.38 kB / 279.7 MB, free: 10.5 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004876/0.01348, allocations: 481.8 kB / 280.2 MB, free: 9.969 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.01349, allocations: 4 kB / 280.2 MB, free: 9.965 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.463e-05/0.01352, allocations: 11.94 kB / 280.2 MB, free: 9.953 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.01353, allocations: 4 kB / 280.2 MB, free: 9.949 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002185/0.01375, allocations: 341.8 kB / 280.5 MB, free: 9.566 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009315/0.01468, allocations: 0.8001 MB / 281.3 MB, free: 8.73 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002997/0.01498, allocations: 372.6 kB / 281.7 MB, free: 8.305 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002211/0.0152, allocations: 353.2 kB / 282 MB, free: 7.906 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.105e-05/0.01521, allocations: 0 / 282 MB, free: 7.906 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003746/0.01558, allocations: 0.6027 MB / 282.6 MB, free: 7.215 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.423e-06/0.01558, allocations: 4 kB / 282.6 MB, free: 7.211 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.001054/0.01664, allocations: 1.358 MB / 284 MB, free: 5.699 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/0.01674, allocations: 285 kB / 284.3 MB, free: 5.359 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001092/0.01783, allocations: 1.116 MB / 285.4 MB, free: 4.23 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.482e-05/0.01787, allocations: 33.7 kB / 285.4 MB, free: 4.191 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.296e-05/0.01796, allocations: 184.7 kB / 285.6 MB, free: 4.004 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.457e-05/0.01802, allocations: 67.53 kB / 285.7 MB, free: 3.938 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000146/0.01816, allocations: 163 kB / 285.8 MB, free: 3.77 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.01829, allocations: 0.5117 MB / 286.3 MB, free: 3.246 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002179/0.01851, allocations: 341.8 kB / 286.7 MB, free: 2.863 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002222/0.01873, allocations: 380 kB / 287 MB, free: 2.43 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004027/0.01914, allocations: 0.6741 MB / 287.7 MB, free: 1.637 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.01914, allocations: 0 / 287.7 MB, free: 1.637 MB / 266.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001002/0.02014, allocations: 0.9614 MB / 288.7 MB, free: 0.5703 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001502/0.02029, allocations: 253.6 kB / 288.9 MB, free: 280 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.0203, allocations: 0 / 288.9 MB, free: 280 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.457e-05/0.02033, allocations: 4 kB / 288.9 MB, free: 276 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.743e-05/0.02036, allocations: 7.938 kB / 288.9 MB, free: 268 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.02037, allocations: 3.984 kB / 288.9 MB, free: 264 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002139/0.02059, allocations: 23.95 kB / 289 MB, free: 240 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001179/0.02071, allocations: 112.1 kB / 289.1 MB, free: 128 kB / 266.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,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.0005824/0.02129, allocations: 0.6189 MB / 289.7 MB, free: 15.45 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001237/0.02141, allocations: 103.5 kB / 289.8 MB, free: 15.34 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001711/0.02158, allocations: 114.8 kB / 289.9 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.02158, allocations: 0 / 289.9 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/0.02159, allocations: 0 / 289.9 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.02159, allocations: 4 kB / 289.9 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001474/0.02307, allocations: 1.691 MB / 291.6 MB, free: 13.39 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.02307, allocations: 0 / 291.6 MB, free: 13.39 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.434e-05/0.02309, allocations: 11.92 kB / 291.6 MB, free: 13.38 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.02309, allocations: 0 / 291.6 MB, free: 13.38 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.568e-05/0.02312, allocations: 31.98 kB / 291.6 MB, free: 13.35 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.02313, allocations: 0 / 291.6 MB, free: 13.35 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.02313, allocations: 4 kB / 291.6 MB, free: 13.35 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008261/0.02395, allocations: 1.233 MB / 292.9 MB, free: 12 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004191/0.02437, allocations: 384.9 kB / 293.3 MB, free: 11.61 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.565e-05/0.02444, allocations: 20 kB / 293.3 MB, free: 11.59 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001212/0.02456, allocations: 23.98 kB / 293.3 MB, free: 11.57 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000122/0.02468, allocations: 55.94 kB / 293.3 MB, free: 11.51 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.094e-05/0.02476, allocations: 115.8 kB / 293.5 MB, free: 11.4 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006861/0.02545, allocations: 0.7249 MB / 294.2 MB, free: 10.68 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02545, allocations: 0 / 294.2 MB, free: 10.68 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002624/0.02571, allocations: 95.94 kB / 294.3 MB, free: 10.58 MB / 282.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 (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.0001371/0.02585, allocations: 143.2 kB / 294.4 MB, free: 10.43 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007581/0.02661, allocations: 1.201 MB / 295.6 MB, free: 9.031 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.02661, allocations: 0 / 295.6 MB, free: 9.031 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004363/0.02705, allocations: 0.8441 MB / 296.5 MB, free: 8.035 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006759/0.02772, allocations: 309.7 kB / 296.8 MB, free: 7.762 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001787/0.02951, allocations: 1.46 MB / 298.2 MB, free: 6.215 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000158/0.02967, allocations: 144.2 kB / 298.4 MB, free: 6.055 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001923/0.02986, allocations: 89.27 kB / 298.5 MB, free: 5.965 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.621e-05/0.02996, allocations: 52.42 kB / 298.5 MB, free: 5.914 MB / 282.7 MB Notification: Performance of SimCode: time 7.61e-07/0.02996, allocations: 0 / 298.5 MB, free: 5.914 MB / 282.7 MB Notification: Performance of Templates: time 0.1474/0.1774, allocations: 10.28 MB / 308.8 MB, free: 41.19 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/WiredX/WiredX.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.175291792023927]