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.001553/0.001553, allocations: 109.6 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001932/0.001932, allocations: 212 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 247.4 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 66.44 kB / 307.6 MB, free: 0.6367 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08761/0.08895, allocations: 50.53 MB / 358.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.003212/0.0922, allocations: 1.819 MB / 360 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002172/0.0944, allocations: 0.9744 MB / 360.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001348/0.09456, allocations: 0 / 360.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001788/0.09475, allocations: 31.72 kB / 361 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001301/0.09492, allocations: 35.66 kB / 361 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003916/0.09532, allocations: 95.81 kB / 361.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004282/0.09576, allocations: 319.4 kB / 361.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001655/0.09593, allocations: 57.64 kB / 361.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007909/0.09673, allocations: 0.7097 MB / 362.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002434/0.09699, allocations: 143.4 kB / 362.3 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.289e-05/0.09709, allocations: 20 kB / 362.3 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.536e-05/0.09717, allocations: 20 kB / 362.4 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001526/0.09733, allocations: 147.4 kB / 362.5 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002326/0.09757, allocations: 234.2 kB / 362.7 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006239/0.09821, allocations: 0.7476 MB / 363.5 MB, free: 8.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.09822, allocations: 0 / 363.5 MB, free: 8.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.09823, allocations: 4 kB / 363.5 MB, free: 8.746 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.624e-05/0.09825, allocations: 0 / 363.5 MB, free: 8.746 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.001354/0.09961, allocations: 1.165 MB / 364.6 MB, free: 7.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.09965, allocations: 8.031 kB / 364.7 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000145/0.0998, allocations: 72.09 kB / 364.7 MB, free: 7.402 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00044/0.1003, allocations: 400.1 kB / 365.1 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.107e-05/0.1003, allocations: 16.56 kB / 365.1 MB, free: 6.957 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.396e-05/0.1004, allocations: 16.38 kB / 365.1 MB, free: 6.941 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005367/0.1009, allocations: 258.2 kB / 365.4 MB, free: 6.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.1009, allocations: 4 kB / 365.4 MB, free: 6.676 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.446e-05/0.101, allocations: 12 kB / 365.4 MB, free: 6.664 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.101, allocations: 3.938 kB / 365.4 MB, free: 6.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000304/0.1013, allocations: 143.5 kB / 365.6 MB, free: 6.523 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001196/0.1025, allocations: 0.7232 MB / 366.3 MB, free: 5.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003632/0.1029, allocations: 214.3 kB / 366.5 MB, free: 5.531 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002912/0.1032, allocations: 176.8 kB / 366.7 MB, free: 5.355 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.717e-05/0.1032, allocations: 0 / 366.7 MB, free: 5.355 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005516/0.1038, allocations: 393.9 kB / 367 MB, free: 4.934 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.954e-06/0.1038, allocations: 0 / 367 MB, free: 4.934 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.00145/0.1052, allocations: 0.924 MB / 368 MB, free: 3.953 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001271/0.1054, allocations: 281 kB / 368.2 MB, free: 3.617 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001242/0.1066, allocations: 0.9529 MB / 369.2 MB, free: 2.652 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.143e-05/0.1067, allocations: 37.7 kB / 369.2 MB, free: 2.609 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.143e-05/0.1068, allocations: 130 kB / 369.4 MB, free: 2.477 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.945e-05/0.1069, allocations: 63.19 kB / 369.4 MB, free: 2.414 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002371/0.1071, allocations: 169 kB / 369.6 MB, free: 2.242 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.1073, allocations: 338.8 kB / 369.9 MB, free: 1.902 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002726/0.1075, allocations: 128.2 kB / 370 MB, free: 1.777 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002759/0.1078, allocations: 163.7 kB / 370.2 MB, free: 1.609 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006573/0.1085, allocations: 0.7027 MB / 370.9 MB, free: 0.793 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.1085, allocations: 3.938 kB / 370.9 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.1531/0.2616, allocations: 0.747 MB / 371.7 MB, free: 20.2 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001405/0.2617, allocations: 242.9 kB / 371.9 MB, free: 19.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.2618, allocations: 1.094 kB / 371.9 MB, free: 19.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.096e-05/0.2618, allocations: 1.625 kB / 371.9 MB, free: 19.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.373e-05/0.2618, allocations: 8.312 kB / 371.9 MB, free: 19.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.2618, allocations: 4.5 kB / 371.9 MB, free: 19.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003197/0.2622, allocations: 30.92 kB / 371.9 MB, free: 19.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001377/0.2623, allocations: 107.4 kB / 372 MB, free: 19.94 MB / 302.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.0005725/0.2629, allocations: 0.6175 MB / 372.7 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.966e-05/0.263, allocations: 79.34 kB / 372.7 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001748/0.2632, allocations: 131.4 kB / 372.9 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.2632, allocations: 1.812 kB / 372.9 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.2632, allocations: 0.8438 kB / 372.9 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.2632, allocations: 1.516 kB / 372.9 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001716/0.2649, allocations: 1.426 MB / 374.3 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.265, allocations: 4.406 kB / 374.3 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.651e-05/0.265, allocations: 4.953 kB / 374.3 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.265, allocations: 1.375 kB / 374.3 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.152e-05/0.265, allocations: 28.98 kB / 374.3 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.245e-06/0.2651, allocations: 1.766 kB / 374.3 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2651, allocations: 1.031 kB / 374.3 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001151/0.2662, allocations: 0.9664 MB / 375.3 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005243/0.2668, allocations: 420.4 kB / 375.7 MB, free: 18.26 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001088/0.2669, allocations: 30.92 kB / 375.7 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002218/0.2671, allocations: 19.77 kB / 375.8 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001548/0.2673, allocations: 58.56 kB / 375.8 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001125/0.2674, allocations: 118.7 kB / 375.9 MB, free: 18.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008178/0.2682, allocations: 0.6881 MB / 376.6 MB, free: 17.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2682, allocations: 0 / 376.6 MB, free: 17.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004074/0.2686, allocations: 91.78 kB / 376.7 MB, free: 17.88 MB / 302.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.0001537/0.2688, allocations: 145.6 kB / 376.9 MB, free: 17.78 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008512/0.2696, allocations: 0.8848 MB / 377.7 MB, free: 17.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2697, allocations: 0 / 377.7 MB, free: 17.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004952/0.2702, allocations: 0.7516 MB / 378.5 MB, free: 16.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001094/0.2713, allocations: 267.9 kB / 378.8 MB, free: 16.39 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001868/0.2731, allocations: 1.363 MB / 380.1 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004634/0.2736, allocations: 0.9427 MB / 381.1 MB, free: 14.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001062/0.2737, allocations: 61.98 kB / 381.1 MB, free: 14.85 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2737, allocations: 3.312 kB / 381.1 MB, free: 14.85 MB / 302.1 MB Notification: Performance of Templates: time 0.008848/0.2826, allocations: 5.378 MB / 386.5 MB, free: 13.75 MB / 302.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