Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.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.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001593/0.001593, allocations: 104.4 kB / 18.35 MB, free: 4.633 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.001458/0.001459, allocations: 191 kB / 19.29 MB, free: 3.703 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.638/1.638, allocations: 205.1 MB / 225.2 MB, free: 12.27 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.001148/0.001148, allocations: 47.92 kB / 282.1 MB, free: 2.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09919/0.1004, allocations: 46.63 MB / 328.7 MB, free: 3.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003554/0.104, allocations: 1.551 MB / 330.3 MB, free: 2.219 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002446/0.1064, allocations: 0.8974 MB / 331.2 MB, free: 1.312 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.353e-05/0.1065, allocations: 0 / 331.2 MB, free: 1.312 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001298/0.1067, allocations: 15.86 kB / 331.2 MB, free: 1.297 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.541e-05/0.1068, allocations: 23.78 kB / 331.2 MB, free: 1.273 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003196/0.1071, allocations: 51.89 kB / 331.3 MB, free: 1.223 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002896/0.1074, allocations: 179.7 kB / 331.4 MB, free: 1.047 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001719/0.1076, allocations: 17.41 kB / 331.5 MB, free: 1.027 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001079/0.1087, allocations: 0.6239 MB / 332.1 MB, free: 412 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001999/0.1089, allocations: 83.64 kB / 332.2 MB, free: 328 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.417e-05/0.1089, allocations: 12 kB / 332.2 MB, free: 316 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.89e-05/0.109, allocations: 15.94 kB / 332.2 MB, free: 300 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001428/0.1091, allocations: 75.69 kB / 332.3 MB, free: 224 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000207/0.1094, allocations: 135 kB / 332.4 MB, free: 88 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000613/0.11, allocations: 454.4 kB / 332.8 MB, free: 15.64 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.104e-06/0.11, allocations: 0 / 332.8 MB, free: 15.64 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.288e-06/0.11, allocations: 0 / 332.8 MB, free: 15.64 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.212e-05/0.11, allocations: 0 / 332.8 MB, free: 15.64 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001215/0.1112, allocations: 0.8177 MB / 333.7 MB, free: 14.74 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.008e-05/0.1113, allocations: 12.03 kB / 333.7 MB, free: 14.73 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.256e-05/0.1114, allocations: 40.47 kB / 333.7 MB, free: 14.69 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004771/0.1119, allocations: 302.1 kB / 334 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.923e-05/0.1119, allocations: 16.38 kB / 334 MB, free: 14.34 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.316e-05/0.112, allocations: 8.375 kB / 334 MB, free: 14.33 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005252/0.1125, allocations: 166.7 kB / 334.2 MB, free: 14.16 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.1125, allocations: 3.984 kB / 334.2 MB, free: 14.16 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.978e-05/0.1125, allocations: 8 kB / 334.2 MB, free: 14.15 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.1126, allocations: 3.938 kB / 334.2 MB, free: 14.15 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001885/0.1128, allocations: 83.95 kB / 334.3 MB, free: 14.07 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009032/0.1137, allocations: 0.4964 MB / 334.8 MB, free: 13.52 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002155/0.1139, allocations: 130.5 kB / 334.9 MB, free: 13.38 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001834/0.1141, allocations: 104.9 kB / 335 MB, free: 13.28 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.553e-05/0.1141, allocations: 8 kB / 335 MB, free: 13.27 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004679/0.1146, allocations: 238.6 kB / 335.3 MB, free: 13.01 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.573e-06/0.1146, allocations: 4 kB / 335.3 MB, free: 13.01 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.001091/0.1157, allocations: 0.6069 MB / 335.9 MB, free: 12.36 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00013/0.1158, allocations: 195.9 kB / 336.1 MB, free: 12.13 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000755/0.1166, allocations: 0.5601 MB / 336.6 MB, free: 11.56 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.518e-05/0.1166, allocations: 33.7 kB / 336.7 MB, free: 11.52 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001166/0.1168, allocations: 117 kB / 336.8 MB, free: 11.41 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.25e-05/0.1168, allocations: 27.7 kB / 336.8 MB, free: 11.38 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001431/0.117, allocations: 109.2 kB / 336.9 MB, free: 11.27 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002488/0.1172, allocations: 330.8 kB / 337.2 MB, free: 10.93 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001673/0.1174, allocations: 83.95 kB / 337.3 MB, free: 10.85 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001724/0.1176, allocations: 93.81 kB / 337.4 MB, free: 10.75 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007378/0.1183, allocations: 444.6 kB / 337.8 MB, free: 10.25 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.1183, allocations: 0 / 337.8 MB, free: 10.25 MB / 286.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0008251/0.1192, allocations: 0.4979 MB / 338.3 MB, free: 9.719 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001782/0.1194, allocations: 148.6 kB / 338.5 MB, free: 9.543 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.1194, allocations: 7.969 kB / 338.5 MB, free: 9.535 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.974e-05/0.1194, allocations: 7.938 kB / 338.5 MB, free: 9.527 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.722e-05/0.1195, allocations: 0 / 338.5 MB, free: 9.527 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.066e-06/0.1195, allocations: 0 / 338.5 MB, free: 9.527 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001603/0.1196, allocations: 19.98 kB / 338.5 MB, free: 9.508 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001249/0.1198, allocations: 97.3 kB / 338.6 MB, free: 9.41 MB / 286.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.0004369/0.1202, allocations: 404 kB / 339 MB, free: 8.973 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.541e-05/0.1203, allocations: 47.52 kB / 339 MB, free: 8.926 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000135/0.1204, allocations: 71.48 kB / 339.1 MB, free: 8.852 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.1204, allocations: 0 / 339.1 MB, free: 8.852 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.1205, allocations: 0 / 339.1 MB, free: 8.852 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.1205, allocations: 0 / 339.1 MB, free: 8.852 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001322/0.1218, allocations: 0.9672 MB / 340.1 MB, free: 7.797 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.1218, allocations: 4.125 kB / 340.1 MB, free: 7.793 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.102e-06/0.1218, allocations: 4 kB / 340.1 MB, free: 7.789 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.1218, allocations: 0 / 340.1 MB, free: 7.789 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.375e-05/0.1219, allocations: 19.98 kB / 340.1 MB, free: 7.77 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1219, allocations: 0 / 340.1 MB, free: 7.77 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.107e-06/0.1219, allocations: 7.938 kB / 340.1 MB, free: 7.762 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001001/0.1229, allocations: 0.6637 MB / 340.8 MB, free: 7.051 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000396/0.1233, allocations: 256.4 kB / 341 MB, free: 6.781 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.496e-05/0.1234, allocations: 8 kB / 341 MB, free: 6.773 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001486/0.1235, allocations: 15.98 kB / 341.1 MB, free: 6.758 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000167/0.1237, allocations: 59.88 kB / 341.1 MB, free: 6.699 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000104/0.1238, allocations: 101.2 kB / 341.2 MB, free: 6.602 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0005531/0.1244, allocations: 422.8 kB / 341.6 MB, free: 6.188 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1244, allocations: 0 / 341.6 MB, free: 6.188 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000303/0.1247, allocations: 52 kB / 341.7 MB, free: 6.137 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: 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.0002986/0.125, allocations: 115.2 kB / 341.8 MB, free: 6.012 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006831/0.1257, allocations: 0.536 MB / 342.3 MB, free: 5.414 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1257, allocations: 0 / 342.3 MB, free: 5.414 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004493/0.1262, allocations: 465 kB / 342.8 MB, free: 4.898 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000865/0.1271, allocations: 195.7 kB / 343 MB, free: 4.711 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001224/0.1283, allocations: 0.7368 MB / 343.7 MB, free: 3.949 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006675/0.129, allocations: 0.822 MB / 344.5 MB, free: 3.098 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.325e-05/0.129, allocations: 16.86 kB / 344.5 MB, free: 3.078 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.945e-05/0.1291, allocations: 15.44 kB / 344.6 MB, free: 3.062 MB / 286.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1291, allocations: 4 kB / 344.6 MB, free: 3.059 MB / 286.1 MB Notification: Performance of Templates: time 0.0118/0.1409, allocations: 7.435 MB / 352 MB, free: 11.46 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches