Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001173/0.001173, allocations: 200 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 229.5 MB / 247.7 MB, free: 6.309 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000766/0.000766, allocations: 99.5 kB / 299.9 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002792/0.0002792, allocations: 11.98 kB / 360.6 MB, free: 8.465 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2142/0.2145, allocations: 51.41 MB / 412 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001261/0.2158, allocations: 1.256 MB / 413.3 MB, free: 24.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001475/0.2173, allocations: 1.416 MB / 414.7 MB, free: 23.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.491e-05/0.2173, allocations: 4 kB / 414.7 MB, free: 23.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.437e-05/0.2174, allocations: 3.938 kB / 414.7 MB, free: 23.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.539e-05/0.2175, allocations: 15.86 kB / 414.7 MB, free: 23.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002137/0.2177, allocations: 57.77 kB / 414.8 MB, free: 23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001092/0.2178, allocations: 131.7 kB / 414.9 MB, free: 22.87 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001054/0.218, allocations: 24.89 kB / 414.9 MB, free: 22.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004509/0.2184, allocations: 0.6315 MB / 415.6 MB, free: 22.21 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001071/0.2185, allocations: 83.73 kB / 415.7 MB, free: 22.12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.102e-05/0.2186, allocations: 4 kB / 415.7 MB, free: 22.12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.465e-05/0.2186, allocations: 4 kB / 415.7 MB, free: 22.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.328e-05/0.2187, allocations: 71.64 kB / 415.7 MB, free: 22.05 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001118/0.2188, allocations: 152.7 kB / 415.9 MB, free: 21.89 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000255/0.2191, allocations: 442.3 kB / 416.3 MB, free: 21.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.2191, allocations: 4 kB / 416.3 MB, free: 21.45 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2191, allocations: 0 / 416.3 MB, free: 21.45 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.2191, allocations: 0 / 416.3 MB, free: 21.45 MB / 298.7 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.000478/0.2196, allocations: 0.7337 MB / 417.1 MB, free: 20.64 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.2197, allocations: 12.02 kB / 417.1 MB, free: 20.63 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.34e-05/0.2197, allocations: 40.47 kB / 417.1 MB, free: 20.59 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002167/0.2199, allocations: 298 kB / 417.4 MB, free: 20.26 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.065e-05/0.22, allocations: 12.38 kB / 417.4 MB, free: 20.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.035e-05/0.22, allocations: 8.375 kB / 417.4 MB, free: 20.24 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002911/0.2203, allocations: 173.9 kB / 417.6 MB, free: 20.06 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.2203, allocations: 3.984 kB / 417.6 MB, free: 20.06 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.631e-05/0.2204, allocations: 8 kB / 417.6 MB, free: 20.05 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.2204, allocations: 0 / 417.6 MB, free: 20.05 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000154/0.2205, allocations: 83.95 kB / 417.7 MB, free: 19.97 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005829/0.2211, allocations: 0.5042 MB / 418.2 MB, free: 19.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001851/0.2213, allocations: 122.5 kB / 418.3 MB, free: 19.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001502/0.2215, allocations: 108.8 kB / 418.4 MB, free: 19.18 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.626e-06/0.2215, allocations: 4 kB / 418.4 MB, free: 19.17 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003113/0.2218, allocations: 242.6 kB / 418.7 MB, free: 18.91 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.423e-06/0.2218, allocations: 0 / 418.7 MB, free: 18.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007614/0.2226, allocations: 0.6109 MB / 419.3 MB, free: 18.26 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.565e-05/0.2227, allocations: 199.9 kB / 419.5 MB, free: 18.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005096/0.2232, allocations: 0.5561 MB / 420 MB, free: 17.46 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.397e-05/0.2232, allocations: 37.7 kB / 420.1 MB, free: 17.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.24e-05/0.2233, allocations: 109.1 kB / 420.2 MB, free: 17.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.715e-05/0.2233, allocations: 27.62 kB / 420.2 MB, free: 17.28 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.998e-05/0.2233, allocations: 7.984 kB / 420.2 MB, free: 17.27 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.76e-05/0.2234, allocations: 330.8 kB / 420.5 MB, free: 16.94 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001331/0.2235, allocations: 83.95 kB / 420.6 MB, free: 16.86 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001604/0.2237, allocations: 97.67 kB / 420.7 MB, free: 16.75 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002891/0.224, allocations: 434.8 kB / 421.1 MB, free: 16.26 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.224, allocations: 3.938 kB / 421.1 MB, free: 16.26 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005231/0.2245, allocations: 0.5057 MB / 421.6 MB, free: 15.71 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.537e-05/0.2246, allocations: 156.5 kB / 421.8 MB, free: 15.53 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.2246, allocations: 0 / 421.8 MB, free: 15.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.2247, allocations: 8.031 kB / 421.8 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.994e-05/0.2247, allocations: 0 / 421.8 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.2247, allocations: 0 / 421.8 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001613/0.2249, allocations: 15.98 kB / 421.8 MB, free: 15.51 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.482e-05/0.2249, allocations: 101.3 kB / 421.9 MB, free: 15.41 MB / 298.7 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002622/0.2252, allocations: 403.9 kB / 422.3 MB, free: 14.97 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.057e-05/0.2253, allocations: 39.53 kB / 422.3 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.072e-05/0.2254, allocations: 71.47 kB / 422.4 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.2254, allocations: 7.938 kB / 422.4 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.2254, allocations: 4 kB / 422.4 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.2254, allocations: 0 / 422.4 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008289/0.2262, allocations: 0.9752 MB / 423.4 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.2262, allocations: 0 / 423.4 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.647e-06/0.2262, allocations: 0 / 423.4 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.2262, allocations: 0 / 423.4 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.227e-05/0.2263, allocations: 23.98 kB / 423.4 MB, free: 13.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.2263, allocations: 0 / 423.4 MB, free: 13.76 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.2263, allocations: 7.938 kB / 423.4 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005698/0.2269, allocations: 0.6479 MB / 424.1 MB, free: 13.06 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002366/0.2271, allocations: 260.3 kB / 424.3 MB, free: 12.79 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.881e-05/0.2272, allocations: 12.19 kB / 424.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001455/0.2273, allocations: 19.98 kB / 424.4 MB, free: 12.75 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001242/0.2275, allocations: 55.88 kB / 424.4 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.475e-05/0.2275, allocations: 113.2 kB / 424.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003747/0.2279, allocations: 422.8 kB / 424.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2279, allocations: 0 / 424.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000255/0.2282, allocations: 51.94 kB / 425 MB, free: 12.12 MB / 298.7 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.0001294/0.2283, allocations: 123.2 kB / 425.1 MB, free: 12 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004599/0.2288, allocations: 0.536 MB / 425.6 MB, free: 11.4 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.2288, allocations: 0 / 425.6 MB, free: 11.4 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002686/0.2291, allocations: 461 kB / 426.1 MB, free: 10.89 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006923/0.2298, allocations: 170.3 kB / 426.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009989/0.2308, allocations: 0.8686 MB / 427.1 MB, free: 9.832 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002778/0.2311, allocations: 0.8185 MB / 427.9 MB, free: 8.988 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.397e-05/0.2312, allocations: 12.88 kB / 428 MB, free: 8.973 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.772e-05/0.2312, allocations: 11.44 kB / 428 MB, free: 8.961 MB / 298.7 MB Notification: Performance of SimCode: time 5.51e-07/0.2312, allocations: 0 / 428 MB, free: 8.961 MB / 298.7 MB Notification: Performance of Templates: time 0.007483/0.2387, allocations: 6.704 MB / 434.7 MB, free: 2.145 MB / 298.7 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