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.001271/0.001271, allocations: 105.4 kB / 18.4 MB, free: 4.66 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.001282/0.001282, allocations: 189.1 kB / 19.33 MB, free: 3.738 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.276/1.276, 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.001217/0.001217, allocations: 55.92 kB / 329.2 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07469/0.07592, allocations: 46.62 MB / 375.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002618/0.07858, allocations: 1.563 MB / 377.4 MB, free: 3.008 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001847/0.08045, allocations: 0.9065 MB / 378.3 MB, free: 2.094 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.567e-05/0.08054, allocations: 4 kB / 378.3 MB, free: 2.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.258e-05/0.08067, allocations: 11.86 kB / 378.3 MB, free: 2.078 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.271e-05/0.08077, allocations: 23.81 kB / 378.3 MB, free: 2.055 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002635/0.08104, allocations: 59.86 kB / 378.4 MB, free: 1.996 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002408/0.08129, allocations: 163.7 kB / 378.5 MB, free: 1.836 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001014/0.0814, allocations: 29.39 kB / 378.6 MB, free: 1.809 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000651/0.08206, allocations: 0.6356 MB / 379.2 MB, free: 1.172 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001536/0.08222, allocations: 79.69 kB / 379.3 MB, free: 1.094 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.186e-05/0.08229, allocations: 12 kB / 379.3 MB, free: 1.082 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.489e-05/0.08234, allocations: 12 kB / 379.3 MB, free: 1.07 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.708e-05/0.08244, allocations: 75.69 kB / 379.4 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001259/0.08258, allocations: 135 kB / 379.5 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003929/0.08298, allocations: 454.4 kB / 380 MB, free: 428 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.08299, allocations: 0 / 380 MB, free: 428 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.083, allocations: 0 / 380 MB, free: 428 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.341e-05/0.08302, allocations: 0 / 380 MB, free: 428 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.1467/0.2297, allocations: 0.8117 MB / 380.8 MB, free: 12.96 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.2298, allocations: 9.75 kB / 380.8 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000155/0.2299, allocations: 46.56 kB / 380.8 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003206/0.2303, allocations: 295.2 kB / 381.1 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.614e-05/0.2303, allocations: 6.062 kB / 381.1 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.457e-05/0.2303, allocations: 9.406 kB / 381.1 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003897/0.2307, allocations: 168.8 kB / 381.3 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.2308, allocations: 2.469 kB / 381.3 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.284e-05/0.2308, allocations: 12.59 kB / 381.3 MB, free: 12.65 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.2308, allocations: 1.375 kB / 381.3 MB, free: 12.65 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001732/0.231, allocations: 83.47 kB / 381.4 MB, free: 12.65 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007118/0.2317, allocations: 0.5008 MB / 381.9 MB, free: 12.36 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001979/0.2319, allocations: 124.9 kB / 382 MB, free: 12.33 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001548/0.2321, allocations: 108.8 kB / 382.1 MB, free: 12.32 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.008e-05/0.2321, allocations: 0 / 382.1 MB, free: 12.32 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003738/0.2325, allocations: 243 kB / 382.4 MB, free: 12.21 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.673e-06/0.2325, allocations: 0.8438 kB / 382.4 MB, free: 12.21 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.001005/0.2335, allocations: 0.6099 MB / 383 MB, free: 12.01 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/0.2336, allocations: 197.8 kB / 383.2 MB, free: 11.79 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007053/0.2343, allocations: 0.5616 MB / 383.7 MB, free: 11.58 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.248e-05/0.2343, allocations: 31.7 kB / 383.7 MB, free: 11.55 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.708e-05/0.2344, allocations: 120.8 kB / 383.9 MB, free: 11.45 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.119e-05/0.2345, allocations: 31.97 kB / 383.9 MB, free: 11.43 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001272/0.2346, allocations: 99.11 kB / 384 MB, free: 11.38 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.268e-05/0.2346, allocations: 331.2 kB / 384.3 MB, free: 11.06 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00015/0.2348, allocations: 81.03 kB / 384.4 MB, free: 11.04 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001495/0.235, allocations: 101.5 kB / 384.5 MB, free: 11 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003084/0.2353, allocations: 437.8 kB / 384.9 MB, free: 10.62 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.2353, allocations: 1.188 kB / 384.9 MB, free: 10.62 MB / 318.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005969/0.2359, allocations: 0.5022 MB / 385.4 MB, free: 10.35 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.624e-05/0.236, allocations: 151.8 kB / 385.6 MB, free: 10.19 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.236, allocations: 9.406 kB / 385.6 MB, free: 10.19 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.236, allocations: 1.594 kB / 385.6 MB, free: 10.19 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.101e-05/0.236, allocations: 2.156 kB / 385.6 MB, free: 10.19 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.69e-06/0.2361, allocations: 160 / 385.6 MB, free: 10.19 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001617/0.2362, allocations: 14.39 kB / 385.6 MB, free: 10.19 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.976e-05/0.2363, allocations: 104.6 kB / 385.7 MB, free: 10.18 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.0002829/0.2366, allocations: 394.8 kB / 386.1 MB, free: 9.852 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.665e-05/0.2367, allocations: 46.75 kB / 386.1 MB, free: 9.828 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.739e-05/0.2368, allocations: 72.7 kB / 386.2 MB, free: 9.793 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.2368, allocations: 1.438 kB / 386.2 MB, free: 9.793 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.2368, allocations: 2.812 kB / 386.2 MB, free: 9.793 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.2368, allocations: 1.031 kB / 386.2 MB, free: 9.793 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009761/0.2378, allocations: 0.9724 MB / 387.2 MB, free: 9.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.073e-06/0.2378, allocations: 0 / 387.2 MB, free: 9.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.192e-06/0.2378, allocations: 1.859 kB / 387.2 MB, free: 9.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.2378, allocations: 0.5938 kB / 387.2 MB, free: 9.16 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.602e-05/0.2379, allocations: 18.64 kB / 387.2 MB, free: 9.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.2379, allocations: 5.578 kB / 387.2 MB, free: 9.156 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2379, allocations: 0 / 387.2 MB, free: 9.156 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000685/0.2386, allocations: 0.6602 MB / 387.9 MB, free: 8.762 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002704/0.2388, allocations: 257.3 kB / 388.1 MB, free: 8.578 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.757e-05/0.2389, allocations: 11.94 kB / 388.1 MB, free: 8.574 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001509/0.2391, allocations: 11.89 kB / 388.1 MB, free: 8.574 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000138/0.2392, allocations: 62.48 kB / 388.2 MB, free: 8.555 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001062/0.2393, allocations: 108.9 kB / 388.3 MB, free: 8.543 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000457/0.2398, allocations: 420.3 kB / 388.7 MB, free: 8.328 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2398, allocations: 0 / 388.7 MB, free: 8.328 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003241/0.2401, allocations: 55.69 kB / 388.8 MB, free: 8.32 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.0001232/0.2403, allocations: 119.8 kB / 388.9 MB, free: 8.227 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005275/0.2408, allocations: 0.5399 MB / 389.4 MB, free: 7.809 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2408, allocations: 0 / 389.4 MB, free: 7.809 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003038/0.2411, allocations: 460.8 kB / 389.9 MB, free: 7.41 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008454/0.242, allocations: 195.5 kB / 390.1 MB, free: 7.352 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001103/0.2431, allocations: 0.7924 MB / 390.9 MB, free: 6.906 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003104/0.2434, allocations: 0.8222 MB / 391.7 MB, free: 6.168 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.714e-05/0.2435, allocations: 22.11 kB / 391.7 MB, free: 6.152 MB / 318.1 MB Notification: Performance of SimCode: time 2e-07/0.2435, allocations: 7.938 kB / 391.7 MB, free: 6.145 MB / 318.1 MB Notification: Performance of Templates: time 0.00754/0.251, allocations: 4.298 MB / 396 MB, free: 5.578 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