Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.WiredX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wiredX.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX") translateModel(Modelica.Electrical.Digital.Examples.WiredX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wiredX.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 114.5 kB / 17.93 MB, free: 5.566 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 189.9 kB / 18.86 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.484/1.484, allocations: 205.1 MB / 224.7 MB, free: 12.37 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001125/0.001125, allocations: 43.94 kB / 280.8 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08421/0.08535, allocations: 46.64 MB / 327.4 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.002934/0.08831, allocations: 1.848 MB / 329.3 MB, free: 2.926 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001879/0.09022, allocations: 0.9871 MB / 330.3 MB, free: 1.93 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.481e-05/0.09032, allocations: 4 kB / 330.3 MB, free: 1.926 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001478/0.09049, allocations: 15.84 kB / 330.3 MB, free: 1.91 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 8.087e-05/0.09058, allocations: 27.78 kB / 330.3 MB, free: 1.883 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003231/0.09091, allocations: 83.92 kB / 330.4 MB, free: 1.801 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003464/0.09126, allocations: 323.4 kB / 330.7 MB, free: 1.484 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.0914, allocations: 53.66 kB / 330.8 MB, free: 1.43 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006677/0.09208, allocations: 0.7329 MB / 331.5 MB, free: 0.6953 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001789/0.09227, allocations: 151.4 kB / 331.6 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.801e-05/0.09233, allocations: 20 kB / 331.7 MB, free: 0.5273 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.191e-05/0.09239, allocations: 20 kB / 331.7 MB, free: 0.5078 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001319/0.09253, allocations: 143.4 kB / 331.8 MB, free: 376 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001963/0.09273, allocations: 246.2 kB / 332.1 MB, free: 128 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000498/0.09324, allocations: 0.6122 MB / 332.7 MB, free: 15.51 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.09325, allocations: 4 kB / 332.7 MB, free: 15.51 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.09326, allocations: 0 / 332.7 MB, free: 15.51 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.537e-06/0.09327, allocations: 0 / 332.7 MB, free: 15.51 MB / 286.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.001084/0.09436, allocations: 1.168 MB / 333.9 MB, free: 14.24 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.0944, allocations: 8.031 kB / 333.9 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001108/0.09452, allocations: 72.09 kB / 333.9 MB, free: 14.16 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003565/0.09488, allocations: 400.1 kB / 334.3 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.067e-05/0.09492, allocations: 12.56 kB / 334.3 MB, free: 13.72 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.495e-05/0.09498, allocations: 28.38 kB / 334.4 MB, free: 13.69 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000493/0.09548, allocations: 258.2 kB / 334.6 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.0955, allocations: 0 / 334.6 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.943e-05/0.09555, allocations: 11.98 kB / 334.6 MB, free: 13.42 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.09556, allocations: 0 / 334.6 MB, free: 13.42 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002778/0.09584, allocations: 136.2 kB / 334.8 MB, free: 13.29 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009612/0.09681, allocations: 0.7349 MB / 335.5 MB, free: 12.5 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003459/0.09717, allocations: 202.4 kB / 335.7 MB, free: 12.3 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002736/0.09745, allocations: 176.7 kB / 335.9 MB, free: 12.12 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.968e-05/0.09748, allocations: 4 kB / 335.9 MB, free: 12.12 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005306/0.09802, allocations: 385.8 kB / 336.2 MB, free: 11.7 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 1.663e-06/0.09803, allocations: 0 / 336.2 MB, free: 11.7 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.001382/0.09942, allocations: 0.9208 MB / 337.2 MB, free: 10.73 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001435/0.09957, allocations: 289 kB / 337.4 MB, free: 10.38 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001076/0.1007, allocations: 0.9491 MB / 338.4 MB, free: 9.426 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.847e-05/0.1007, allocations: 37.7 kB / 338.4 MB, free: 9.383 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.375e-05/0.1008, allocations: 126 kB / 338.6 MB, free: 9.254 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.182e-05/0.1009, allocations: 71.23 kB / 338.6 MB, free: 9.184 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001863/0.1011, allocations: 157.1 kB / 338.8 MB, free: 9.023 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.1012, allocations: 338.8 kB / 339.1 MB, free: 8.684 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002402/0.1014, allocations: 120.2 kB / 339.2 MB, free: 8.566 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002569/0.1017, allocations: 167.8 kB / 339.4 MB, free: 8.391 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006277/0.1023, allocations: 0.7021 MB / 340.1 MB, free: 7.574 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.1024, allocations: 3.938 kB / 340.1 MB, free: 7.57 MB / 286.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009718/0.1033, allocations: 0.7448 MB / 340.8 MB, free: 6.77 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001317/0.1035, allocations: 249.6 kB / 341.1 MB, free: 6.477 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.1035, allocations: 0 / 341.1 MB, free: 6.477 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.1035, allocations: 0 / 341.1 MB, free: 6.477 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.743e-05/0.1035, allocations: 15.92 kB / 341.1 MB, free: 6.461 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.563e-06/0.1036, allocations: 4.094 kB / 341.1 MB, free: 6.457 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000242/0.1038, allocations: 31.92 kB / 341.1 MB, free: 6.426 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001084/0.1039, allocations: 104.1 kB / 341.2 MB, free: 6.324 MB / 286.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.0005427/0.1045, allocations: 0.6162 MB / 341.9 MB, free: 5.648 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.403e-05/0.1046, allocations: 83.05 kB / 341.9 MB, free: 5.566 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001726/0.1048, allocations: 130.9 kB / 342.1 MB, free: 5.434 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.1048, allocations: 3.984 kB / 342.1 MB, free: 5.43 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.1048, allocations: 8 kB / 342.1 MB, free: 5.422 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.1048, allocations: 3.938 kB / 342.1 MB, free: 5.418 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001643/0.1064, allocations: 1.421 MB / 343.5 MB, free: 3.891 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.1065, allocations: 0 / 343.5 MB, free: 3.891 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.748e-05/0.1065, allocations: 11.92 kB / 343.5 MB, free: 3.879 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.1065, allocations: 4 kB / 343.5 MB, free: 3.875 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.619e-05/0.1065, allocations: 27.98 kB / 343.5 MB, free: 3.848 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.1066, allocations: 0 / 343.5 MB, free: 3.848 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.1066, allocations: 3.938 kB / 343.5 MB, free: 3.844 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001126/0.1077, allocations: 0.9611 MB / 344.5 MB, free: 2.816 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004969/0.1082, allocations: 415.6 kB / 344.9 MB, free: 2.391 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/0.1083, allocations: 24 kB / 344.9 MB, free: 2.367 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002274/0.1085, allocations: 23.97 kB / 345 MB, free: 2.344 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/0.1087, allocations: 55.94 kB / 345 MB, free: 2.289 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001055/0.1088, allocations: 111.9 kB / 345.1 MB, free: 2.18 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0008153/0.1096, allocations: 0.6899 MB / 345.8 MB, free: 1.492 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1096, allocations: 4 kB / 345.8 MB, free: 1.488 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003644/0.11, allocations: 95.94 kB / 345.9 MB, free: 1.395 MB / 286.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.0001783/0.1102, allocations: 139.2 kB / 346 MB, free: 1.25 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000956/0.1112, allocations: 0.8974 MB / 346.9 MB, free: 260 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1112, allocations: 0 / 346.9 MB, free: 260 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005882/0.1118, allocations: 0.746 MB / 347.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001052/0.1128, allocations: 290.7 kB / 348 MB, free: 15.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001951/0.1148, allocations: 1.56 MB / 349.5 MB, free: 13.53 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005355/0.1153, allocations: 0.944 MB / 350.5 MB, free: 12.56 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/0.1155, allocations: 59.33 kB / 350.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1155, allocations: 4 kB / 350.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of Templates: time 0.007049/0.1225, allocations: 5.374 MB / 355.9 MB, free: 7.082 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/WiredX/WiredX.csv","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches