Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.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.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009013/0.0009012, allocations: 91.48 kB / 17.35 MB, free: 6.031 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001251/0.001251, allocations: 200.1 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.492/1.492, allocations: 227.7 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002115/0.0002114, allocations: 4 kB / 307.7 MB, free: 0.8438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1235, allocations: 51.53 MB / 359.2 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001769/0.1254, allocations: 1.28 MB / 360.5 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002101/0.1275, allocations: 0.9124 MB / 361.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.216e-05/0.1276, allocations: 0 / 361.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001406/0.1278, allocations: 7.938 kB / 361.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001208/0.1279, allocations: 11.92 kB / 361.5 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003536/0.1283, allocations: 51.89 kB / 361.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002159/0.1285, allocations: 135.7 kB / 361.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001872/0.1287, allocations: 21.39 kB / 361.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008316/0.1295, allocations: 0.6278 MB / 362.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001629/0.1297, allocations: 87.61 kB / 362.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.541e-05/0.1298, allocations: 4 kB / 362.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.399e-05/0.1298, allocations: 4 kB / 362.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001401/0.1299, allocations: 79.62 kB / 362.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001783/0.1301, allocations: 152.7 kB / 362.6 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004125/0.1306, allocations: 438.3 kB / 363 MB, free: 9.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1306, allocations: 0 / 363 MB, free: 9.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1306, allocations: 0 / 363 MB, free: 9.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.982e-06/0.1306, allocations: 0 / 363 MB, free: 9.48 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007785/0.1314, allocations: 0.7364 MB / 363.8 MB, free: 8.664 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.1314, allocations: 8.031 kB / 363.8 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.35e-05/0.1315, allocations: 48.31 kB / 363.8 MB, free: 8.609 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003046/0.1318, allocations: 306.1 kB / 364.1 MB, free: 8.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.359e-05/0.1319, allocations: 4.375 kB / 364.1 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.578e-05/0.1319, allocations: 12.38 kB / 364.1 MB, free: 8.254 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003671/0.1323, allocations: 177.8 kB / 364.3 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.1323, allocations: 0 / 364.3 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.901e-05/0.1323, allocations: 4 kB / 364.3 MB, free: 8.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.1323, allocations: 0 / 364.3 MB, free: 8.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001835/0.1325, allocations: 83.95 kB / 364.4 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007099/0.1332, allocations: 0.5003 MB / 364.9 MB, free: 7.438 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002151/0.1335, allocations: 122.5 kB / 365 MB, free: 7.309 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001903/0.1337, allocations: 112.9 kB / 365.1 MB, free: 7.195 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.448e-05/0.1337, allocations: 0 / 365.1 MB, free: 7.195 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003735/0.1341, allocations: 250.6 kB / 365.4 MB, free: 6.926 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.563e-06/0.1341, allocations: 0 / 365.4 MB, free: 6.926 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.00094/0.135, allocations: 0.6104 MB / 366 MB, free: 6.281 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001273/0.1352, allocations: 195.9 kB / 366.2 MB, free: 6.047 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006881/0.1359, allocations: 0.5639 MB / 366.7 MB, free: 5.477 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.971e-05/0.1359, allocations: 29.7 kB / 366.8 MB, free: 5.441 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.424e-05/0.136, allocations: 117.1 kB / 366.9 MB, free: 5.324 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.778e-05/0.1361, allocations: 31.61 kB / 366.9 MB, free: 5.293 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.113e-05/0.1361, allocations: 25.72 kB / 366.9 MB, free: 5.262 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.1362, allocations: 334.8 kB / 367.3 MB, free: 4.926 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001561/0.1364, allocations: 79.97 kB / 367.4 MB, free: 4.848 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001599/0.1366, allocations: 97.66 kB / 367.4 MB, free: 4.746 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004263/0.137, allocations: 441.1 kB / 367.9 MB, free: 4.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.137, allocations: 0 / 367.9 MB, free: 4.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006601/0.1377, allocations: 0.4979 MB / 368.4 MB, free: 3.715 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001/0.1378, allocations: 152.5 kB / 368.5 MB, free: 3.535 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.1378, allocations: 4.031 kB / 368.5 MB, free: 3.531 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.1378, allocations: 3.938 kB / 368.5 MB, free: 3.527 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.351e-05/0.1379, allocations: 4 kB / 368.5 MB, free: 3.523 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.1379, allocations: 112 / 368.5 MB, free: 3.523 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001865/0.1381, allocations: 23.92 kB / 368.6 MB, free: 3.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001094/0.1382, allocations: 89.31 kB / 368.6 MB, free: 3.414 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.Mux2x1.inertialDelaySensitive.y,Input0.y,Select.y,Input1.y,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.x,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.yy,Mux2x1.nextstate,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 5 * 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.0004046/0.1386, allocations: 411.9 kB / 369 MB, free: 2.969 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.156e-05/0.1387, allocations: 47.44 kB / 369.1 MB, free: 2.922 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001126/0.1388, allocations: 79.45 kB / 369.2 MB, free: 2.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.746e-06/0.1388, allocations: 0 / 369.2 MB, free: 2.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.1388, allocations: 4.062 kB / 369.2 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.1388, allocations: 0 / 369.2 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001146/0.14, allocations: 0.9633 MB / 370.1 MB, free: 1.785 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.14, allocations: 0 / 370.1 MB, free: 1.785 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.758e-06/0.14, allocations: 3.938 kB / 370.1 MB, free: 1.781 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.2e-06/0.14, allocations: 3.984 kB / 370.1 MB, free: 1.777 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.213e-05/0.14, allocations: 19.94 kB / 370.2 MB, free: 1.758 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.1401, allocations: 4 kB / 370.2 MB, free: 1.754 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.1401, allocations: 7.922 kB / 370.2 MB, free: 1.746 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007836/0.1409, allocations: 0.6518 MB / 370.8 MB, free: 1.047 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003222/0.1412, allocations: 260.3 kB / 371.1 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.195e-05/0.1413, allocations: 15.98 kB / 371.1 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000167/0.1414, allocations: 19.91 kB / 371.1 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/0.1416, allocations: 63.8 kB / 371.2 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001006/0.1417, allocations: 105.2 kB / 371.3 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005437/0.1423, allocations: 418.9 kB / 371.7 MB, free: 164 kB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1423, allocations: 0 / 371.7 MB, free: 164 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003202/0.1426, allocations: 48 kB / 371.7 MB, free: 116 kB / 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: 14 ($whenCondition1,$whenCondition2,Mux2x1.nextstate,Mux2x1.yy,Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Select.y,Input0.y) * Number of discrete states: 14 (Input1.y,Select.y,Input0.y,Mux2x1.yy,Mux2x1.nextstate,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,Mux2x1.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 5 * 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.1845/0.3271, allocations: 115.1 kB / 371.9 MB, free: 19.94 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008641/0.328, allocations: 0.534 MB / 372.4 MB, free: 19.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.328, allocations: 0.8125 kB / 372.4 MB, free: 19.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003902/0.3284, allocations: 467.6 kB / 372.8 MB, free: 19.31 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000928/0.3294, allocations: 171 kB / 373 MB, free: 19.31 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001339/0.3307, allocations: 0.8708 MB / 373.9 MB, free: 18.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003287/0.3311, allocations: 0.8198 MB / 374.7 MB, free: 18.13 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.847e-05/0.3312, allocations: 11.83 kB / 374.7 MB, free: 18.12 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.267e-05/0.3312, allocations: 12.06 kB / 374.7 MB, free: 18.11 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3312, allocations: 3.75 kB / 374.7 MB, free: 18.11 MB / 302.1 MB Notification: Performance of Templates: time 0.01202/0.3432, allocations: 6.701 MB / 381.4 MB, free: 16.93 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches