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.001181/0.001181, allocations: 104.2 kB / 18.39 MB, free: 4.551 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.001325/0.001325, allocations: 184.3 kB / 19.33 MB, free: 3.629 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.467/1.467, allocations: 205.1 MB / 225.2 MB, free: 12.24 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.001291/0.001292, allocations: 51.92 kB / 329.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08812/0.08942, allocations: 46.62 MB / 375.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002899/0.09236, allocations: 1.559 MB / 377.4 MB, free: 3.004 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001962/0.09435, allocations: 0.9065 MB / 378.3 MB, free: 2.09 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.388e-05/0.09446, allocations: 0 / 378.3 MB, free: 2.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.414e-05/0.09459, allocations: 15.86 kB / 378.3 MB, free: 2.074 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000106/0.0947, allocations: 27.8 kB / 378.3 MB, free: 2.047 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000284/0.09499, allocations: 51.88 kB / 378.4 MB, free: 1.996 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002416/0.09524, allocations: 167.7 kB / 378.5 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001036/0.09536, allocations: 29.39 kB / 378.6 MB, free: 1.805 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007329/0.0961, allocations: 0.6356 MB / 379.2 MB, free: 1.168 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001439/0.09625, allocations: 75.7 kB / 379.3 MB, free: 1.094 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.862e-05/0.09631, allocations: 12 kB / 379.3 MB, free: 1.082 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.547e-05/0.09635, allocations: 12 kB / 379.3 MB, free: 1.07 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001051/0.09646, allocations: 79.67 kB / 379.4 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001346/0.0966, allocations: 127 kB / 379.5 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000408/0.09702, allocations: 458.3 kB / 379.9 MB, free: 428 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.09703, allocations: 4 kB / 380 MB, free: 424 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.09704, allocations: 0 / 380 MB, free: 424 kB / 318.1 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.09706, allocations: 4 kB / 380 MB, free: 420 kB / 318.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.1829/0.28, allocations: 0.8088 MB / 380.8 MB, free: 13.01 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.735e-05/0.2801, allocations: 10.09 kB / 380.8 MB, free: 13.01 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001082/0.2802, allocations: 45.28 kB / 380.8 MB, free: 12.99 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003176/0.2805, allocations: 288 kB / 381.1 MB, free: 12.74 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.803e-05/0.2805, allocations: 11.03 kB / 381.1 MB, free: 12.74 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.767e-05/0.2806, allocations: 10 kB / 381.1 MB, free: 12.74 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004029/0.281, allocations: 168.4 kB / 381.3 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.281, allocations: 5.281 kB / 381.3 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.36e-05/0.281, allocations: 9.203 kB / 381.3 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.2811, allocations: 0.7188 kB / 381.3 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001861/0.2813, allocations: 83.62 kB / 381.4 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007451/0.282, allocations: 0.5025 MB / 381.9 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002078/0.2822, allocations: 121.6 kB / 382 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001792/0.2824, allocations: 112.4 kB / 382.1 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.686e-06/0.2824, allocations: 0 / 382.1 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004243/0.2829, allocations: 240.6 kB / 382.3 MB, free: 12.27 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.974e-06/0.2829, allocations: 4.359 kB / 382.4 MB, free: 12.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.001163/0.284, allocations: 0.6129 MB / 383 MB, free: 12.06 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.906e-05/0.2841, allocations: 200.7 kB / 383.2 MB, free: 11.84 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007805/0.2849, allocations: 0.5624 MB / 383.7 MB, free: 11.63 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.729e-05/0.285, allocations: 33.8 kB / 383.8 MB, free: 11.59 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.238e-05/0.285, allocations: 112.6 kB / 383.9 MB, free: 11.49 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.304e-05/0.2851, allocations: 29.58 kB / 383.9 MB, free: 11.47 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001364/0.2852, allocations: 102 kB / 384 MB, free: 11.43 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.138e-05/0.2853, allocations: 329.2 kB / 384.3 MB, free: 11.11 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001631/0.2855, allocations: 86.72 kB / 384.4 MB, free: 11.08 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001716/0.2856, allocations: 93.67 kB / 384.5 MB, free: 11.05 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003451/0.286, allocations: 436.5 kB / 384.9 MB, free: 10.66 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.286, allocations: 4.328 kB / 384.9 MB, free: 10.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006106/0.2866, allocations: 0.5074 MB / 385.4 MB, free: 10.4 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.493e-05/0.2867, allocations: 150.9 kB / 385.6 MB, free: 10.24 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.2867, allocations: 1.125 kB / 385.6 MB, free: 10.24 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.2867, allocations: 3.844 kB / 385.6 MB, free: 10.24 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.088e-05/0.2868, allocations: 1.609 kB / 385.6 MB, free: 10.24 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.2868, allocations: 4.141 kB / 385.6 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001662/0.2869, allocations: 17 kB / 385.6 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001087/0.2871, allocations: 100.7 kB / 385.7 MB, free: 10.23 MB / 318.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.0003031/0.2874, allocations: 403.8 kB / 386.1 MB, free: 9.895 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.221e-05/0.2875, allocations: 46.75 kB / 386.1 MB, free: 9.871 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.307e-05/0.2876, allocations: 72.89 kB / 386.2 MB, free: 9.836 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.2876, allocations: 0.75 kB / 386.2 MB, free: 9.836 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.2876, allocations: 1.281 kB / 386.2 MB, free: 9.836 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.2876, allocations: 0 / 386.2 MB, free: 9.836 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001036/0.2886, allocations: 0.9649 MB / 387.2 MB, free: 9.207 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.2886, allocations: 2.047 kB / 387.2 MB, free: 9.207 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.519e-06/0.2886, allocations: 0 / 387.2 MB, free: 9.207 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.2887, allocations: 2.688 kB / 387.2 MB, free: 9.207 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.942e-05/0.2887, allocations: 18.28 kB / 387.2 MB, free: 9.207 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.2887, allocations: 32 / 387.2 MB, free: 9.207 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.2887, allocations: 5.781 kB / 387.2 MB, free: 9.203 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007504/0.2895, allocations: 0.6644 MB / 387.9 MB, free: 8.805 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002926/0.2898, allocations: 253.6 kB / 388.1 MB, free: 8.625 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.619e-05/0.2899, allocations: 14.81 kB / 388.1 MB, free: 8.621 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.29, allocations: 16.59 kB / 388.2 MB, free: 8.617 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001657/0.2902, allocations: 58.72 kB / 388.2 MB, free: 8.602 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001101/0.2903, allocations: 105.2 kB / 388.3 MB, free: 8.594 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004956/0.2908, allocations: 423.5 kB / 388.7 MB, free: 8.375 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2908, allocations: 0 / 388.7 MB, free: 8.375 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003541/0.2912, allocations: 57.28 kB / 388.8 MB, free: 8.367 MB / 318.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.0001397/0.2913, allocations: 114.7 kB / 388.9 MB, free: 8.273 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005843/0.2919, allocations: 0.5393 MB / 389.4 MB, free: 7.855 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2919, allocations: 0 / 389.4 MB, free: 7.855 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003422/0.2923, allocations: 461.9 kB / 389.9 MB, free: 7.457 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000843/0.2931, allocations: 203 kB / 390.1 MB, free: 7.395 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001204/0.2943, allocations: 0.7918 MB / 390.9 MB, free: 6.949 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000304/0.2947, allocations: 0.8193 MB / 391.7 MB, free: 6.211 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.763e-05/0.2947, allocations: 17.09 kB / 391.7 MB, free: 6.199 MB / 318.1 MB Notification: Performance of SimCode: time 7.11e-07/0.2947, allocations: 4 kB / 391.7 MB, free: 6.195 MB / 318.1 MB Notification: Performance of Templates: time 0.007682/0.3024, allocations: 4.301 MB / 396 MB, free: 5.633 MB / 318.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 -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