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.001095/0.001095, allocations: 109.2 kB / 17.21 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001244/0.001244, allocations: 213.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 227.4 MB / 246.3 MB, free: 10.86 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.00122, allocations: 66.95 kB / 306.3 MB, free: 1.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.111, allocations: 50.54 MB / 356.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.00314/0.1141, allocations: 1.875 MB / 358.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00215/0.1163, allocations: 1.025 MB / 359.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001217/0.1165, allocations: 4 kB / 359.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001742/0.1167, allocations: 15.84 kB / 359.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001152/0.1168, allocations: 35.78 kB / 359.7 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003692/0.1172, allocations: 83.92 kB / 359.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003309/0.1175, allocations: 247.4 kB / 360.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001509/0.1177, allocations: 49.66 kB / 360.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007667/0.1184, allocations: 0.7135 MB / 360.8 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001972/0.1186, allocations: 151.3 kB / 361 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.707e-05/0.1187, allocations: 12 kB / 361 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.949e-05/0.1188, allocations: 8 kB / 361 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001518/0.119, allocations: 131.5 kB / 361.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002359/0.1192, allocations: 234.2 kB / 361.4 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006499/0.1199, allocations: 0.7319 MB / 362.1 MB, free: 9.207 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.546e-06/0.1199, allocations: 8 kB / 362.1 MB, free: 9.199 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1199, allocations: 0 / 362.1 MB, free: 9.199 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.925e-05/0.1199, allocations: 0 / 362.1 MB, free: 9.199 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.001586/0.1215, allocations: 1.169 MB / 363.3 MB, free: 7.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.1216, allocations: 8.031 kB / 363.3 MB, free: 7.922 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001521/0.1217, allocations: 76.09 kB / 363.3 MB, free: 7.848 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004702/0.1222, allocations: 396.1 kB / 363.7 MB, free: 7.422 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.238e-05/0.1222, allocations: 16.55 kB / 363.7 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.222e-05/0.1223, allocations: 20.38 kB / 363.8 MB, free: 7.387 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005477/0.1229, allocations: 252 kB / 364 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.1229, allocations: 0 / 364 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.456e-05/0.1229, allocations: 12 kB / 364 MB, free: 7.121 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.1229, allocations: 4 kB / 364 MB, free: 7.117 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003112/0.1233, allocations: 136.1 kB / 364.2 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001218/0.1245, allocations: 0.7348 MB / 364.9 MB, free: 6.199 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003797/0.1249, allocations: 198.4 kB / 365.1 MB, free: 5.996 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003022/0.1252, allocations: 176.8 kB / 365.3 MB, free: 5.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.496e-05/0.1252, allocations: 0 / 365.3 MB, free: 5.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005969/0.1258, allocations: 394 kB / 365.7 MB, free: 5.398 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.773e-06/0.1258, allocations: 0 / 365.7 MB, free: 5.398 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001537/0.1274, allocations: 0.9279 MB / 366.6 MB, free: 4.414 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001699/0.1276, allocations: 285 kB / 366.9 MB, free: 4.074 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001443/0.129, allocations: 0.9452 MB / 367.8 MB, free: 3.117 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.802e-05/0.1291, allocations: 41.69 kB / 367.8 MB, free: 3.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.1292, allocations: 126 kB / 368 MB, free: 2.941 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.1293, allocations: 63.25 kB / 368 MB, free: 2.879 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002459/0.1296, allocations: 169 kB / 368.2 MB, free: 2.707 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.1297, allocations: 338.8 kB / 368.5 MB, free: 2.367 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002743/0.13, allocations: 120.2 kB / 368.6 MB, free: 2.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002998/0.1303, allocations: 171.8 kB / 368.8 MB, free: 2.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007261/0.131, allocations: 0.7066 MB / 369.5 MB, free: 1.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.1311, allocations: 3.938 kB / 369.5 MB, free: 1.246 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001104/0.1322, allocations: 0.7488 MB / 370.3 MB, free: 452 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001614/0.1323, allocations: 245.6 kB / 370.5 MB, free: 156 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.1324, allocations: 0 / 370.5 MB, free: 156 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.662e-05/0.1324, allocations: 4 kB / 370.5 MB, free: 152 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.954e-05/0.1324, allocations: 7.984 kB / 370.5 MB, free: 144 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.928e-06/0.1324, allocations: 7.938 kB / 370.5 MB, free: 136 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002857/0.1327, allocations: 35.95 kB / 370.6 MB, free: 100 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.183/0.3158, allocations: 106.6 kB / 370.7 MB, free: 20.47 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.0007855/0.3166, allocations: 0.6071 MB / 371.3 MB, free: 20.06 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001339/0.3168, allocations: 77.62 kB / 371.3 MB, free: 20.06 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001971/0.317, allocations: 127.3 kB / 371.5 MB, free: 20 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.317, allocations: 1.281 kB / 371.5 MB, free: 20 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.317, allocations: 0.6875 kB / 371.5 MB, free: 20 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.317, allocations: 4.938 kB / 371.5 MB, free: 20 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001896/0.3189, allocations: 1.42 MB / 372.9 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-06/0.3189, allocations: 1.625 kB / 372.9 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.268e-05/0.3189, allocations: 5.562 kB / 372.9 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/0.3189, allocations: 4.812 kB / 372.9 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.031e-05/0.319, allocations: 28.67 kB / 372.9 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.319, allocations: 1.781 kB / 372.9 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.319, allocations: 0 / 372.9 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001262/0.3203, allocations: 0.9635 MB / 373.9 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005982/0.3209, allocations: 421.8 kB / 374.3 MB, free: 18.81 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001102/0.321, allocations: 24.02 kB / 374.3 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002524/0.3213, allocations: 28.94 kB / 374.4 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001608/0.3215, allocations: 51.88 kB / 374.4 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001206/0.3216, allocations: 111.7 kB / 374.5 MB, free: 18.79 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008577/0.3225, allocations: 0.6887 MB / 375.2 MB, free: 18.44 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.11e-07/0.3225, allocations: 1.188 kB / 375.2 MB, free: 18.44 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004129/0.3229, allocations: 100.1 kB / 375.3 MB, free: 18.43 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.000161/0.323, allocations: 148 kB / 375.5 MB, free: 18.33 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008608/0.3239, allocations: 0.8881 MB / 376.3 MB, free: 17.64 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3239, allocations: 0 / 376.3 MB, free: 17.64 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005071/0.3244, allocations: 0.7488 MB / 377.1 MB, free: 16.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00102/0.3255, allocations: 253.8 kB / 377.3 MB, free: 16.94 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001806/0.3273, allocations: 1.498 MB / 378.8 MB, free: 16.06 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004604/0.3278, allocations: 0.9417 MB / 379.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002019/0.328, allocations: 91.48 kB / 379.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.936e-05/0.3281, allocations: 45.48 kB / 379.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3281, allocations: 0 / 379.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of Templates: time 0.01325/0.3413, allocations: 8.89 MB / 388.8 MB, free: 12.53 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/WiredX/WiredX.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches