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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 113.7 kB / 17.73 MB, free: 5.211 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.001186/0.001186, allocations: 183.1 kB / 18.66 MB, free: 4.281 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.359/1.359, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001129/0.001129, allocations: 51.92 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07357/0.0747, allocations: 46.63 MB / 374.6 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002634/0.07738, allocations: 1.555 MB / 376.2 MB, free: 3.508 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001882/0.07928, allocations: 0.9136 MB / 377.1 MB, free: 2.586 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.039e-05/0.07938, allocations: 0 / 377.1 MB, free: 2.586 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.446e-05/0.07953, allocations: 11.88 kB / 377.1 MB, free: 2.574 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001019/0.07964, allocations: 23.78 kB / 377.2 MB, free: 2.551 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002876/0.07994, allocations: 55.88 kB / 377.2 MB, free: 2.496 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000247/0.08019, allocations: 175.7 kB / 377.4 MB, free: 2.324 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001098/0.08031, allocations: 21.39 kB / 377.4 MB, free: 2.305 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000669/0.08099, allocations: 0.6356 MB / 378 MB, free: 1.668 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001551/0.08116, allocations: 79.7 kB / 378.1 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.889e-05/0.08121, allocations: 16 kB / 378.1 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.514e-05/0.08126, allocations: 12 kB / 378.1 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000105/0.08137, allocations: 75.62 kB / 378.2 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001351/0.08151, allocations: 127.1 kB / 378.3 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004289/0.08194, allocations: 466 kB / 378.8 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.08196, allocations: 0 / 378.8 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.08196, allocations: 0 / 378.8 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.946e-06/0.08198, allocations: 0 / 378.8 MB, free: 0.9062 MB / 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.0008389/0.08282, allocations: 0.8215 MB / 379.6 MB, free: 4 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.1617/0.2445, allocations: 9.328 kB / 379.6 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001479/0.2447, allocations: 42.64 kB / 379.7 MB, free: 13.08 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001183/0.2449, allocations: 42.53 kB / 379.7 MB, free: 13.08 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003853/0.2453, allocations: 299.6 kB / 380 MB, free: 12.85 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.715e-05/0.2453, allocations: 10.91 kB / 380 MB, free: 12.85 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.988e-05/0.2453, allocations: 9.125 kB / 380 MB, free: 12.85 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003994/0.2457, allocations: 170.5 kB / 380.2 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.2458, allocations: 3.938 kB / 380.2 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.904e-05/0.2458, allocations: 9.844 kB / 380.2 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.303e-06/0.2458, allocations: 1.938 kB / 380.2 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001662/0.246, allocations: 81.62 kB / 380.3 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00077/0.2468, allocations: 0.4941 MB / 380.8 MB, free: 12.53 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002189/0.247, allocations: 129 kB / 380.9 MB, free: 12.5 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001962/0.2472, allocations: 109 kB / 381 MB, free: 12.5 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.282e-05/0.2472, allocations: 1.969 kB / 381 MB, free: 12.5 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004014/0.2476, allocations: 240 kB / 381.2 MB, free: 12.39 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 2.274e-06/0.2477, allocations: 0 / 381.2 MB, free: 12.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.001106/0.2488, allocations: 0.6239 MB / 381.9 MB, free: 12.18 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.501e-05/0.2489, allocations: 193 kB / 382.1 MB, free: 11.96 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000868/0.2497, allocations: 0.5669 MB / 382.6 MB, free: 11.75 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.447e-05/0.2498, allocations: 32.8 kB / 382.7 MB, free: 11.72 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.884e-05/0.2499, allocations: 116.8 kB / 382.8 MB, free: 11.63 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.113e-05/0.2499, allocations: 35.14 kB / 382.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001545/0.2501, allocations: 99.84 kB / 382.9 MB, free: 11.58 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.271e-05/0.2502, allocations: 331.5 kB / 383.2 MB, free: 11.26 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001727/0.2503, allocations: 88.09 kB / 383.3 MB, free: 11.23 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001773/0.2505, allocations: 94.86 kB / 383.4 MB, free: 11.2 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003695/0.2509, allocations: 435.7 kB / 383.8 MB, free: 10.82 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.2509, allocations: 1.156 kB / 383.8 MB, free: 10.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006691/0.2516, allocations: 0.4988 MB / 384.3 MB, free: 10.55 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.895e-05/0.2517, allocations: 149.9 kB / 384.5 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.2517, allocations: 2.172 kB / 384.5 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.2517, allocations: 2.984 kB / 384.5 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.455e-05/0.2517, allocations: 2.562 kB / 384.5 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.2517, allocations: 1.219 kB / 384.5 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001585/0.2519, allocations: 28.75 kB / 384.5 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001021/0.252, allocations: 96.45 kB / 384.6 MB, free: 10.38 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.0003107/0.2523, allocations: 409.2 kB / 385 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.505e-05/0.2524, allocations: 41.05 kB / 385 MB, free: 10.03 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.117e-05/0.2525, allocations: 69.81 kB / 385.1 MB, free: 9.992 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.726e-06/0.2525, allocations: 2.766 kB / 385.1 MB, free: 9.992 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.2525, allocations: 4.344 kB / 385.1 MB, free: 9.992 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.2525, allocations: 3.422 kB / 385.1 MB, free: 9.992 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001037/0.2536, allocations: 0.9681 MB / 386.1 MB, free: 9.359 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.2536, allocations: 0.75 kB / 386.1 MB, free: 9.359 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.403e-06/0.2536, allocations: 5.312 kB / 386.1 MB, free: 9.355 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.2536, allocations: 0 / 386.1 MB, free: 9.355 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.468e-05/0.2536, allocations: 19.56 kB / 386.1 MB, free: 9.355 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.2536, allocations: 4.031 kB / 386.1 MB, free: 9.352 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.2537, allocations: 5.25 kB / 386.1 MB, free: 9.348 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007412/0.2544, allocations: 0.6545 MB / 386.8 MB, free: 8.957 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003422/0.2548, allocations: 253 kB / 387 MB, free: 8.777 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.009e-05/0.2548, allocations: 12.72 kB / 387 MB, free: 8.773 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001581/0.255, allocations: 16.14 kB / 387.1 MB, free: 8.77 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001622/0.2552, allocations: 58.28 kB / 387.1 MB, free: 8.754 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/0.2553, allocations: 109 kB / 387.2 MB, free: 8.742 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004851/0.2558, allocations: 419.6 kB / 387.6 MB, free: 8.527 MB / 318.1 MB Notification: Performance of sort global known variables: time 7.61e-07/0.2558, allocations: 0 / 387.6 MB, free: 8.527 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003154/0.2561, allocations: 52.64 kB / 387.7 MB, free: 8.523 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.0009629/0.2571, allocations: 1.221 MB / 388.9 MB, free: 7.594 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005615/0.2576, allocations: 0.539 MB / 389.4 MB, free: 7.172 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2577, allocations: 0 / 389.4 MB, free: 7.172 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003067/0.258, allocations: 462.2 kB / 389.9 MB, free: 6.773 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008293/0.2588, allocations: 190.7 kB / 390.1 MB, free: 6.719 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004013/0.2628, allocations: 3.259 MB / 393.3 MB, free: 4.617 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003502/0.2632, allocations: 0.8193 MB / 394.2 MB, free: 3.879 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001068/0.2633, allocations: 13.03 kB / 394.2 MB, free: 3.871 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.604e-05/0.2634, allocations: 45.36 kB / 394.2 MB, free: 3.836 MB / 318.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2634, allocations: 0 / 394.2 MB, free: 3.836 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03204/0.2955, allocations: 9.228 MB / 403.4 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.384/8.68, allocations: 9.328 kB / 403.4 MB, free: 0.7109 MB / 318.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.006 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1_res.csv","/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