Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/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_cpp_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_cpp_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009578/0.0009579, allocations: 195.5 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.267/1.267, allocations: 226.5 MB / 244.7 MB, free: 6.453 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000814/0.000814, allocations: 94.16 kB / 296.8 MB, free: 6.672 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002216/0.0002216, allocations: 4 kB / 356.7 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2129/0.2131, allocations: 51.3 MB / 408 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001225/0.2144, allocations: 1.248 MB / 409.3 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001337/0.2158, allocations: 0.8456 MB / 410.1 MB, free: 25.58 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.049e-05/0.2158, allocations: 0 / 410.1 MB, free: 25.58 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.102e-05/0.2159, allocations: 11.92 kB / 410.2 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.877e-05/0.216, allocations: 19.84 kB / 410.2 MB, free: 25.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001948/0.2162, allocations: 40.53 kB / 410.2 MB, free: 25.51 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001077/0.2163, allocations: 124.4 kB / 410.3 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.608e-05/0.2164, allocations: 22.55 kB / 410.4 MB, free: 25.36 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004484/0.2168, allocations: 0.571 MB / 410.9 MB, free: 24.79 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001086/0.217, allocations: 95.81 kB / 411 MB, free: 24.7 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.451e-05/0.217, allocations: 4 kB / 411 MB, free: 24.7 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.417e-05/0.2171, allocations: 4 kB / 411 MB, free: 24.69 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.453e-05/0.2171, allocations: 80.53 kB / 411.1 MB, free: 24.61 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000103/0.2172, allocations: 148.9 kB / 411.2 MB, free: 24.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000194/0.2174, allocations: 363.1 kB / 411.6 MB, free: 24.11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.2175, allocations: 0.9688 kB / 411.6 MB, free: 24.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2175, allocations: 0 / 411.6 MB, free: 24.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.2175, allocations: 0.6875 kB / 411.6 MB, free: 24.11 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.0005185/0.218, allocations: 0.7312 MB / 412.3 MB, free: 23.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.218, allocations: 12.03 kB / 412.3 MB, free: 23.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.169e-05/0.2181, allocations: 44.47 kB / 412.4 MB, free: 23.24 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002511/0.2184, allocations: 298.1 kB / 412.7 MB, free: 22.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.356e-05/0.2184, allocations: 8.375 kB / 412.7 MB, free: 22.9 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.382e-05/0.2185, allocations: 9.625 kB / 412.7 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003559/0.2188, allocations: 177.8 kB / 412.9 MB, free: 22.71 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.2188, allocations: 0 / 412.9 MB, free: 22.71 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.81e-05/0.2189, allocations: 4.75 kB / 412.9 MB, free: 22.71 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.2189, allocations: 0 / 412.9 MB, free: 22.71 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001515/0.219, allocations: 95.55 kB / 413 MB, free: 22.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005479/0.2196, allocations: 0.4886 MB / 413.5 MB, free: 22.08 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001764/0.2198, allocations: 122.5 kB / 413.6 MB, free: 21.95 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001434/0.2199, allocations: 110.5 kB / 413.7 MB, free: 21.84 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.578e-06/0.2199, allocations: 4.047 kB / 413.7 MB, free: 21.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002924/0.2202, allocations: 262.3 kB / 413.9 MB, free: 21.56 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.483e-06/0.2203, allocations: 3.938 kB / 414 MB, free: 21.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007537/0.221, allocations: 0.607 MB / 414.6 MB, free: 20.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/0.2211, allocations: 195.9 kB / 414.8 MB, free: 20.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004892/0.2216, allocations: 0.56 MB / 415.3 MB, free: 20.11 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.723e-05/0.2216, allocations: 33.69 kB / 415.3 MB, free: 20.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.528e-05/0.2217, allocations: 113.1 kB / 415.5 MB, free: 19.96 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.493e-05/0.2217, allocations: 31.56 kB / 415.5 MB, free: 19.93 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.25e-05/0.2217, allocations: 12 kB / 415.5 MB, free: 19.91 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.745e-05/0.2218, allocations: 326.8 kB / 415.8 MB, free: 19.59 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001305/0.2219, allocations: 83.95 kB / 415.9 MB, free: 19.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001308/0.2221, allocations: 93.67 kB / 416 MB, free: 19.41 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002836/0.2223, allocations: 435.4 kB / 416.4 MB, free: 18.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2224, allocations: 0 / 416.4 MB, free: 18.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005614/0.2229, allocations: 0.5066 MB / 416.9 MB, free: 18.37 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.497e-05/0.223, allocations: 152.5 kB / 417.1 MB, free: 18.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.223, allocations: 0 / 417.1 MB, free: 18.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.223, allocations: 4 kB / 417.1 MB, free: 18.19 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.654e-05/0.223, allocations: 0 / 417.1 MB, free: 18.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.2231, allocations: 0 / 417.1 MB, free: 18.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001567/0.2232, allocations: 19.98 kB / 417.1 MB, free: 18.17 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.941e-05/0.2233, allocations: 93.25 kB / 417.2 MB, free: 18.08 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002517/0.2236, allocations: 420 kB / 417.6 MB, free: 17.62 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.202e-05/0.2236, allocations: 39.53 kB / 417.6 MB, free: 17.59 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.27e-05/0.2237, allocations: 67.48 kB / 417.7 MB, free: 17.52 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.2237, allocations: 3.984 kB / 417.7 MB, free: 17.51 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2237, allocations: 0 / 417.7 MB, free: 17.51 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.2237, allocations: 4 kB / 417.7 MB, free: 17.51 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008226/0.2246, allocations: 0.9593 MB / 418.7 MB, free: 16.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2246, allocations: 0 / 418.7 MB, free: 16.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.998e-06/0.2246, allocations: 0 / 418.7 MB, free: 16.46 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.2246, allocations: 4 kB / 418.7 MB, free: 16.46 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.235e-05/0.2246, allocations: 24.05 kB / 418.7 MB, free: 16.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.2246, allocations: 4 kB / 418.7 MB, free: 16.43 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.2246, allocations: 3.938 kB / 418.7 MB, free: 16.43 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005828/0.2252, allocations: 0.6596 MB / 419.4 MB, free: 15.72 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002466/0.2255, allocations: 252.4 kB / 419.6 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.861e-05/0.2255, allocations: 8 kB / 419.6 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001467/0.2257, allocations: 23.98 kB / 419.6 MB, free: 15.42 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/0.2258, allocations: 59.86 kB / 419.7 MB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.134e-05/0.2259, allocations: 105.2 kB / 419.8 MB, free: 15.26 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003686/0.2263, allocations: 426.8 kB / 420.2 MB, free: 14.85 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2263, allocations: 0 / 420.2 MB, free: 14.85 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002723/0.2266, allocations: 55.94 kB / 420.3 MB, free: 14.79 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001301/0.2267, allocations: 119.1 kB / 420.4 MB, free: 14.67 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000449/0.2272, allocations: 0.536 MB / 420.9 MB, free: 14.07 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.2272, allocations: 0 / 420.9 MB, free: 14.07 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002649/0.2274, allocations: 461 kB / 421.4 MB, free: 13.56 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006734/0.2281, allocations: 168.7 kB / 421.5 MB, free: 13.4 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000936/0.2291, allocations: 0.8858 MB / 422.4 MB, free: 12.48 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002441/0.2293, allocations: 0.8223 MB / 423.2 MB, free: 11.64 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.802e-05/0.2294, allocations: 11.44 kB / 423.3 MB, free: 11.62 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2294, allocations: 0 / 423.3 MB, free: 11.62 MB / 298.7 MB Notification: Performance of Templates: time 0.004384/0.2337, allocations: 4.263 MB / 427.5 MB, free: 7.27 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.MUX2x1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches