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.001035/0.001035, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.273/1.273, allocations: 226.6 MB / 244.3 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007537/0.0007536, allocations: 101.2 kB / 296.4 MB, free: 6.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002239/0.0002242, allocations: 11.98 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2261/0.2263, allocations: 51.29 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001418/0.2278, allocations: 1.256 MB / 408.7 MB, free: 26.59 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001412/0.2292, allocations: 0.8412 MB / 409.6 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.449e-05/0.2293, allocations: 0 / 409.6 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.24e-05/0.2294, allocations: 15.92 kB / 409.6 MB, free: 25.73 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.195e-05/0.2295, allocations: 21.41 kB / 409.6 MB, free: 25.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002241/0.2297, allocations: 35.97 kB / 409.7 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000116/0.2298, allocations: 127.7 kB / 409.8 MB, free: 25.55 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001069/0.23, allocations: 19.7 kB / 409.8 MB, free: 25.53 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004564/0.2304, allocations: 0.5654 MB / 410.4 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001118/0.2305, allocations: 95.77 kB / 410.5 MB, free: 24.87 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.062e-05/0.2306, allocations: 4.531 kB / 410.5 MB, free: 24.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.38e-05/0.2306, allocations: 8.438 kB / 410.5 MB, free: 24.86 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.365e-05/0.2307, allocations: 81.78 kB / 410.6 MB, free: 24.78 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.814e-05/0.2308, allocations: 73.52 kB / 410.6 MB, free: 24.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002252/0.231, allocations: 371.1 kB / 411 MB, free: 24.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.231, allocations: 0 / 411 MB, free: 24.34 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.231, allocations: 0 / 411 MB, free: 24.34 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.2311, allocations: 0 / 411 MB, free: 24.34 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.000527/0.2316, allocations: 0.7363 MB / 411.7 MB, free: 23.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.2316, allocations: 8.031 kB / 411.7 MB, free: 23.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.852e-05/0.2317, allocations: 43.53 kB / 411.8 MB, free: 23.47 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002222/0.2319, allocations: 281.2 kB / 412.1 MB, free: 23.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.114e-05/0.232, allocations: 7.953 kB / 412.1 MB, free: 23.15 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.495e-05/0.232, allocations: 15.98 kB / 412.1 MB, free: 23.13 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003003/0.2323, allocations: 166.4 kB / 412.2 MB, free: 22.96 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.625e-06/0.2323, allocations: 2.062 kB / 412.2 MB, free: 22.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.628e-05/0.2324, allocations: 4 kB / 412.2 MB, free: 22.96 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.608e-06/0.2324, allocations: 4 kB / 412.2 MB, free: 22.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001459/0.2325, allocations: 87.89 kB / 412.3 MB, free: 22.87 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005631/0.2331, allocations: 0.4888 MB / 412.8 MB, free: 22.33 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001731/0.2333, allocations: 130.5 kB / 412.9 MB, free: 22.2 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001411/0.2334, allocations: 108.9 kB / 413.1 MB, free: 22.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.161e-05/0.2334, allocations: 4 kB / 413.1 MB, free: 22.08 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002834/0.2337, allocations: 242.6 kB / 413.3 MB, free: 21.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.613e-06/0.2337, allocations: 0 / 413.3 MB, free: 21.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007471/0.2345, allocations: 0.6148 MB / 413.9 MB, free: 21.17 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.415e-05/0.2346, allocations: 203.8 kB / 414.1 MB, free: 20.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004925/0.2351, allocations: 0.5562 MB / 414.7 MB, free: 20.36 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.899e-05/0.2351, allocations: 33.7 kB / 414.7 MB, free: 20.32 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.048e-05/0.2351, allocations: 113.1 kB / 414.8 MB, free: 20.21 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.506e-05/0.2352, allocations: 39.69 kB / 414.8 MB, free: 20.17 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.925e-05/0.2352, allocations: 8 kB / 414.9 MB, free: 20.16 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.952e-05/0.2353, allocations: 330.8 kB / 415.2 MB, free: 19.83 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001255/0.2354, allocations: 79.95 kB / 415.3 MB, free: 19.75 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001254/0.2355, allocations: 97.66 kB / 415.4 MB, free: 19.65 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001418/0.2357, allocations: 219.5 kB / 415.6 MB, free: 19.41 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2357, allocations: 0 / 415.6 MB, free: 19.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004747/0.2362, allocations: 0.5018 MB / 416.1 MB, free: 18.87 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.747e-05/0.2362, allocations: 156.5 kB / 416.2 MB, free: 18.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.2362, allocations: 0 / 416.2 MB, free: 18.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.2363, allocations: 0 / 416.2 MB, free: 18.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.757e-05/0.2363, allocations: 3.938 kB / 416.2 MB, free: 18.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.2363, allocations: 7.938 kB / 416.2 MB, free: 18.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001625/0.2365, allocations: 15.98 kB / 416.2 MB, free: 18.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.61e-05/0.2366, allocations: 97.23 kB / 416.3 MB, free: 18.56 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.0002425/0.2368, allocations: 400.1 kB / 416.7 MB, free: 18.13 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.424e-05/0.2369, allocations: 47.44 kB / 416.8 MB, free: 18.08 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001116/0.237, allocations: 71.47 kB / 416.9 MB, free: 18.01 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.237, allocations: 0 / 416.9 MB, free: 18.01 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.237, allocations: 0 / 416.9 MB, free: 18.01 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.237, allocations: 0 / 416.9 MB, free: 18.01 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008/0.2378, allocations: 0.9595 MB / 417.8 MB, free: 16.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2378, allocations: 0 / 417.8 MB, free: 16.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.671e-06/0.2378, allocations: 7.984 kB / 417.8 MB, free: 16.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.195e-06/0.2378, allocations: 4 kB / 417.8 MB, free: 16.95 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.064e-05/0.2379, allocations: 23.98 kB / 417.8 MB, free: 16.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.2379, allocations: 0 / 417.8 MB, free: 16.93 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.2379, allocations: 0 / 417.8 MB, free: 16.93 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000554/0.2384, allocations: 0.6594 MB / 418.5 MB, free: 16.22 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002335/0.2387, allocations: 256.4 kB / 418.8 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.609e-05/0.2387, allocations: 12 kB / 418.8 MB, free: 15.94 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001499/0.2389, allocations: 24.08 kB / 418.8 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001332/0.239, allocations: 55.92 kB / 418.8 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.216e-05/0.2391, allocations: 109.2 kB / 419 MB, free: 15.75 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003684/0.2395, allocations: 422.8 kB / 419.4 MB, free: 15.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.11e-07/0.2395, allocations: 0 / 419.4 MB, free: 15.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002638/0.2398, allocations: 59.88 kB / 419.4 MB, free: 15.29 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.0001176/0.2399, allocations: 111.2 kB / 419.5 MB, free: 15.17 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000444/0.2404, allocations: 0.5321 MB / 420.1 MB, free: 14.57 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2404, allocations: 4.062 kB / 420.1 MB, free: 14.57 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002576/0.2406, allocations: 468.9 kB / 420.5 MB, free: 14.05 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007214/0.2414, allocations: 173.4 kB / 420.7 MB, free: 13.89 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000903/0.2423, allocations: 0.8781 MB / 421.6 MB, free: 12.98 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002365/0.2425, allocations: 0.8185 MB / 422.4 MB, free: 12.14 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.773e-05/0.2426, allocations: 15.44 kB / 422.4 MB, free: 12.12 MB / 298.7 MB Notification: Performance of SimCode: time 4.2e-07/0.2426, allocations: 3.938 kB / 422.4 MB, free: 12.12 MB / 298.7 MB Notification: Performance of Templates: time 0.004141/0.2467, allocations: 4.263 MB / 426.7 MB, free: 7.754 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