Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001232/0.001232, allocations: 115.5 kB / 18.45 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001287/0.001287, allocations: 214.8 kB / 19.41 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.414/1.414, allocations: 227.7 MB / 247.9 MB, free: 10.21 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001868/0.001868, allocations: 59.91 kB / 359.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.242/0.2439, allocations: 50.55 MB / 410.2 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.00257/0.2465, allocations: 1.572 MB / 411.8 MB, free: 32 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001916/0.2484, allocations: 0.9004 MB / 412.7 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.389e-05/0.2484, allocations: 0 / 412.7 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.186e-05/0.2485, allocations: 15.86 kB / 412.7 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.533e-05/0.2486, allocations: 23.8 kB / 412.7 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002294/0.2488, allocations: 51.88 kB / 412.8 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002314/0.2491, allocations: 155.7 kB / 412.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.369e-05/0.2492, allocations: 17.39 kB / 412.9 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006655/0.2498, allocations: 0.6356 MB / 413.6 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001372/0.25, allocations: 79.69 kB / 413.6 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.402e-05/0.25, allocations: 16 kB / 413.7 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.747e-05/0.2501, allocations: 12 kB / 413.7 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.679e-05/0.2501, allocations: 83.56 kB / 413.8 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001396/0.2503, allocations: 127 kB / 413.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004575/0.2507, allocations: 462 kB / 414.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.2508, allocations: 0 / 414.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2508, allocations: 0 / 414.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.2508, allocations: 0 / 414.3 MB, free: 13.45 MB / 334.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.0008912/0.2516, allocations: 0.8216 MB / 415.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.2517, allocations: 8.031 kB / 415.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.337e-05/0.2518, allocations: 48.66 kB / 415.2 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003346/0.2521, allocations: 302.5 kB / 415.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.3e-05/0.2521, allocations: 12.38 kB / 415.5 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.963e-05/0.2522, allocations: 8.375 kB / 415.5 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003601/0.2525, allocations: 173.9 kB / 415.7 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.2525, allocations: 0 / 415.7 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.137e-05/0.2526, allocations: 4 kB / 415.7 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.636e-06/0.2526, allocations: 0 / 415.7 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001874/0.2528, allocations: 91.88 kB / 415.8 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007765/0.2535, allocations: 0.5004 MB / 416.3 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002106/0.2537, allocations: 102.5 kB / 416.4 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001711/0.2539, allocations: 84.88 kB / 416.5 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.251e-05/0.2539, allocations: 4 kB / 416.5 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003907/0.2543, allocations: 246.6 kB / 416.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.523e-06/0.2543, allocations: 0 / 416.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001009/0.2553, allocations: 0.611 MB / 417.3 MB, free: 10.21 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/0.2555, allocations: 199.9 kB / 417.5 MB, free: 9.969 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007185/0.2562, allocations: 0.5602 MB / 418.1 MB, free: 9.391 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.722e-05/0.2562, allocations: 33.64 kB / 418.1 MB, free: 9.352 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.788e-05/0.2563, allocations: 121.1 kB / 418.2 MB, free: 9.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.705e-05/0.2563, allocations: 27.81 kB / 418.3 MB, free: 9.203 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001403/0.2565, allocations: 97.5 kB / 418.4 MB, free: 9.102 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.2566, allocations: 338.8 kB / 418.7 MB, free: 8.762 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001682/0.2568, allocations: 79.95 kB / 418.8 MB, free: 8.684 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001745/0.257, allocations: 100.6 kB / 418.9 MB, free: 8.582 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004496/0.2574, allocations: 434.6 kB / 419.3 MB, free: 8.09 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2574, allocations: 0 / 419.3 MB, free: 8.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007067/0.2581, allocations: 0.5019 MB / 419.8 MB, free: 7.551 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001124/0.2582, allocations: 156.5 kB / 419.9 MB, free: 7.367 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.2582, allocations: 0 / 419.9 MB, free: 7.367 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.2583, allocations: 4 kB / 419.9 MB, free: 7.363 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.925e-05/0.2583, allocations: 3.938 kB / 420 MB, free: 7.359 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.2583, allocations: 0 / 420 MB, free: 7.359 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000148/0.2584, allocations: 15.98 kB / 420 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001139/0.2586, allocations: 101.2 kB / 420.1 MB, free: 7.246 MB / 334.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.0003999/0.259, allocations: 400 kB / 420.5 MB, free: 6.816 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.605e-05/0.259, allocations: 51.72 kB / 420.5 MB, free: 6.766 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001093/0.2591, allocations: 79.45 kB / 420.6 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.2591, allocations: 3.984 kB / 420.6 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.2591, allocations: 0 / 420.6 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.2591, allocations: 0 / 420.6 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001174/0.2603, allocations: 0.9556 MB / 421.5 MB, free: 5.645 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.2603, allocations: 8.109 kB / 421.6 MB, free: 5.637 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.831e-06/0.2603, allocations: 4 kB / 421.6 MB, free: 5.633 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.2603, allocations: 0 / 421.6 MB, free: 5.633 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.698e-05/0.2604, allocations: 19.98 kB / 421.6 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.2604, allocations: 4 kB / 421.6 MB, free: 5.609 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.2604, allocations: 3.938 kB / 421.6 MB, free: 5.605 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008304/0.2612, allocations: 0.6633 MB / 422.2 MB, free: 4.898 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003673/0.2616, allocations: 268.5 kB / 422.5 MB, free: 4.617 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.945e-05/0.2616, allocations: 8 kB / 422.5 MB, free: 4.609 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001511/0.2618, allocations: 16 kB / 422.5 MB, free: 4.594 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001362/0.2619, allocations: 59.86 kB / 422.6 MB, free: 4.535 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001062/0.262, allocations: 105.2 kB / 422.7 MB, free: 4.434 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005182/0.2625, allocations: 418.8 kB / 423.1 MB, free: 4.027 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2625, allocations: 0 / 423.1 MB, free: 4.027 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003092/0.2629, allocations: 52 kB / 423.2 MB, free: 3.977 MB / 334.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.000149/0.263, allocations: 115.2 kB / 423.3 MB, free: 3.855 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006103/0.2636, allocations: 488.8 kB / 423.7 MB, free: 3.316 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2636, allocations: 0 / 423.7 MB, free: 3.316 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003732/0.264, allocations: 381 kB / 424.1 MB, free: 2.883 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008294/0.2648, allocations: 191 kB / 424.3 MB, free: 2.707 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001183/0.266, allocations: 0.7517 MB / 425.1 MB, free: 1.93 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004948/0.2665, allocations: 0.8182 MB / 425.9 MB, free: 1.086 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.069e-05/0.2665, allocations: 8.875 kB / 425.9 MB, free: 1.074 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.629e-05/0.2666, allocations: 23.44 kB / 425.9 MB, free: 1.051 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2666, allocations: 0 / 425.9 MB, free: 1.051 MB / 334.1 MB Notification: Performance of Templates: time 0.01166/0.2782, allocations: 7.438 MB / 433.3 MB, free: 9.5 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches