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.001023/0.001023, allocations: 97.45 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001157/0.001157, allocations: 198.3 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.2 MB / 245.9 MB, free: 12.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002613/0.0002613, allocations: 11.98 kB / 306.6 MB, free: 1.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1134, allocations: 51.48 MB / 358.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001888/0.1153, allocations: 1.245 MB / 359.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001956/0.1173, allocations: 0.866 MB / 360.2 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.543e-05/0.1173, allocations: 0 / 360.2 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.778e-05/0.1174, allocations: 7.922 kB / 360.2 MB, free: 12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001048/0.1176, allocations: 23.95 kB / 360.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002932/0.1179, allocations: 39.84 kB / 360.2 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001577/0.118, allocations: 83.84 kB / 360.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.1182, allocations: 17.39 kB / 360.3 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005807/0.1187, allocations: 479.2 kB / 360.8 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000177/0.1189, allocations: 99.8 kB / 360.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.944e-05/0.119, allocations: 4 kB / 360.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.285e-05/0.119, allocations: 4 kB / 360.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.937e-05/0.1191, allocations: 75.75 kB / 361 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.458e-05/0.1192, allocations: 81.45 kB / 361.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003323/0.1196, allocations: 367.1 kB / 361.4 MB, free: 10.74 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1196, allocations: 0 / 361.4 MB, free: 10.74 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.1196, allocations: 0 / 361.4 MB, free: 10.74 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.515e-06/0.1196, allocations: 0 / 361.4 MB, free: 10.74 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.0008179/0.1204, allocations: 0.7427 MB / 362.2 MB, free: 9.922 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.658e-05/0.1205, allocations: 8.031 kB / 362.2 MB, free: 9.914 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.583e-05/0.1206, allocations: 43.44 kB / 362.2 MB, free: 9.871 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003786/0.121, allocations: 269.4 kB / 362.5 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.562e-05/0.121, allocations: 7.953 kB / 362.5 MB, free: 9.559 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.991e-05/0.121, allocations: 16 kB / 362.5 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003897/0.1214, allocations: 169.5 kB / 362.7 MB, free: 9.371 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.1215, allocations: 0 / 362.7 MB, free: 9.371 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.463e-05/0.1215, allocations: 8 kB / 362.7 MB, free: 9.363 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.1215, allocations: 0 / 362.7 MB, free: 9.363 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000169/0.1217, allocations: 83.95 kB / 362.8 MB, free: 9.281 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008215/0.1225, allocations: 0.512 MB / 363.3 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002089/0.1227, allocations: 118.5 kB / 363.4 MB, free: 8.594 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.043e-05/0.1228, allocations: 0 / 363.4 MB, free: 8.594 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003604/0.1231, allocations: 238.7 kB / 363.6 MB, free: 8.336 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.413e-06/0.1231, allocations: 3.938 kB / 363.6 MB, free: 8.332 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.001018/0.1242, allocations: 0.7805 MB / 364.4 MB, free: 7.48 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/0.1243, allocations: 191.9 kB / 364.6 MB, free: 7.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006711/0.125, allocations: 0.5679 MB / 365.2 MB, free: 6.676 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.812e-05/0.125, allocations: 29.7 kB / 365.2 MB, free: 6.641 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.714e-05/0.1251, allocations: 121 kB / 365.3 MB, free: 6.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.804e-05/0.1252, allocations: 31.64 kB / 365.3 MB, free: 6.488 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.224e-05/0.1252, allocations: 8 kB / 365.3 MB, free: 6.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.1253, allocations: 330.8 kB / 365.7 MB, free: 6.148 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001465/0.1255, allocations: 83.95 kB / 365.8 MB, free: 6.066 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001543/0.1256, allocations: 100.2 kB / 365.9 MB, free: 5.965 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002087/0.1259, allocations: 208.5 kB / 366.1 MB, free: 5.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.1259, allocations: 0 / 366.1 MB, free: 5.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006728/0.1265, allocations: 0.5018 MB / 366.6 MB, free: 5.191 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001262/0.1267, allocations: 156.5 kB / 366.7 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.1267, allocations: 4 kB / 366.7 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.1267, allocations: 0 / 366.7 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.689e-05/0.1267, allocations: 0 / 366.7 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.884e-06/0.1268, allocations: 4.031 kB / 366.7 MB, free: 5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001962/0.127, allocations: 19.98 kB / 366.7 MB, free: 4.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/0.1271, allocations: 93.36 kB / 366.8 MB, free: 4.891 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,$whenCondition1,$whenCondition2,Mux2x1.nextstate,Mux2x1.yy,$PRE.Mux2x1.inertialDelaySensitive.x,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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004241/0.1275, allocations: 400 kB / 367.2 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.852e-05/0.1276, allocations: 47.44 kB / 367.3 MB, free: 4.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001112/0.1277, allocations: 63.48 kB / 367.3 MB, free: 4.344 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.1277, allocations: 4 kB / 367.3 MB, free: 4.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.448e-06/0.1277, allocations: 3.984 kB / 367.3 MB, free: 4.336 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.1277, allocations: 7.938 kB / 367.3 MB, free: 4.328 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001139/0.1289, allocations: 0.9595 MB / 368.3 MB, free: 3.281 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.1289, allocations: 0 / 368.3 MB, free: 3.281 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.749e-06/0.1289, allocations: 0 / 368.3 MB, free: 3.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.1289, allocations: 0 / 368.3 MB, free: 3.281 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.627e-05/0.129, allocations: 19.98 kB / 368.3 MB, free: 3.262 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.129, allocations: 0 / 368.3 MB, free: 3.262 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.129, allocations: 0 / 368.3 MB, free: 3.262 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007476/0.1297, allocations: 0.675 MB / 369 MB, free: 2.539 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003518/0.1301, allocations: 260.4 kB / 369.3 MB, free: 2.266 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.758e-05/0.1302, allocations: 12 kB / 369.3 MB, free: 2.254 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001501/0.1303, allocations: 15.98 kB / 369.3 MB, free: 2.238 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001541/0.1305, allocations: 59.92 kB / 369.3 MB, free: 2.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.559e-05/0.1306, allocations: 105.2 kB / 369.4 MB, free: 2.078 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004623/0.1311, allocations: 418.8 kB / 369.8 MB, free: 1.672 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1311, allocations: 4 kB / 369.9 MB, free: 1.668 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002919/0.1314, allocations: 52 kB / 369.9 MB, free: 1.617 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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001668/0.1315, allocations: 115.2 kB / 370 MB, free: 1.492 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006259/0.1322, allocations: 0.536 MB / 370.6 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.1322, allocations: 4 kB / 370.6 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003936/0.1326, allocations: 461 kB / 371 MB, free: 388 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007129/0.1333, allocations: 171.5 kB / 371.2 MB, free: 228 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2116/0.3449, allocations: 0.8332 MB / 372 MB, free: 19.99 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005611/0.3455, allocations: 0.8249 MB / 372.8 MB, free: 19.27 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001359/0.3457, allocations: 13.06 kB / 372.8 MB, free: 19.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.834e-05/0.3457, allocations: 10.97 kB / 372.9 MB, free: 19.25 MB / 302.1 MB Notification: Performance of SimCode: time 1.242e-06/0.3457, allocations: 2.062 kB / 372.9 MB, free: 19.25 MB / 302.1 MB Notification: Performance of Templates: time 0.01383/0.3596, allocations: 6.577 MB / 379.4 MB, free: 18.28 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","../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches