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.001348/0.001348, allocations: 113.2 kB / 17.73 MB, free: 5.336 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.001431/0.001431, allocations: 188.2 kB / 18.67 MB, free: 4.402 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.413/1.413, allocations: 205.1 MB / 224.5 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.001644/0.001644, allocations: 59.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0835/0.08515, allocations: 46.62 MB / 374.6 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002643/0.08783, allocations: 1.563 MB / 376.2 MB, free: 3.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001892/0.08975, allocations: 0.9097 MB / 377.1 MB, free: 2.582 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.402e-05/0.08982, allocations: 4 kB / 377.1 MB, free: 2.578 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.558e-05/0.08993, allocations: 7.875 kB / 377.1 MB, free: 2.57 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.427e-05/0.09002, allocations: 19.8 kB / 377.1 MB, free: 2.551 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002511/0.09028, allocations: 59.88 kB / 377.2 MB, free: 2.492 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002333/0.09052, allocations: 167.7 kB / 377.4 MB, free: 2.328 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.09064, allocations: 29.38 kB / 377.4 MB, free: 2.301 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006672/0.09131, allocations: 0.62 MB / 378 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000151/0.09147, allocations: 83.61 kB / 378.1 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.519e-05/0.09153, allocations: 16 kB / 378.1 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.546e-05/0.09159, allocations: 12 kB / 378.1 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.671e-05/0.09169, allocations: 71.77 kB / 378.2 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001533/0.09185, allocations: 135 kB / 378.3 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004535/0.09231, allocations: 458 kB / 378.8 MB, free: 0.918 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.09232, allocations: 0 / 378.8 MB, free: 0.918 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.09233, allocations: 0 / 378.8 MB, free: 0.918 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.09234, allocations: 0 / 378.8 MB, free: 0.918 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.0008763/0.09322, allocations: 0.8333 MB / 379.6 MB, free: 4 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.1635/0.2567, allocations: 6.797 kB / 379.6 MB, free: 13.09 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001789/0.257, allocations: 38.31 kB / 379.7 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001401/0.2571, allocations: 44.09 kB / 379.7 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003883/0.2575, allocations: 298.3 kB / 380 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.847e-05/0.2575, allocations: 10.2 kB / 380 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.719e-05/0.2576, allocations: 10.98 kB / 380 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003955/0.258, allocations: 166.6 kB / 380.2 MB, free: 12.79 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.258, allocations: 4.641 kB / 380.2 MB, free: 12.78 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.283e-05/0.2581, allocations: 7.844 kB / 380.2 MB, free: 12.78 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.2581, allocations: 6.172 kB / 380.2 MB, free: 12.78 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001837/0.2583, allocations: 87.75 kB / 380.3 MB, free: 12.78 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006947/0.259, allocations: 0.4885 MB / 380.8 MB, free: 12.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002225/0.2592, allocations: 127.4 kB / 380.9 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001725/0.2594, allocations: 113.4 kB / 381 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.255e-06/0.2594, allocations: 2.031 kB / 381 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003849/0.2598, allocations: 238.7 kB / 381.2 MB, free: 12.36 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.954e-06/0.2598, allocations: 1.375 kB / 381.2 MB, free: 12.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009831/0.2608, allocations: 0.6183 MB / 381.9 MB, free: 12.14 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.468e-05/0.2609, allocations: 193.9 kB / 382 MB, free: 11.93 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007811/0.2616, allocations: 0.5601 MB / 382.6 MB, free: 11.72 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.71e-05/0.2617, allocations: 33.55 kB / 382.6 MB, free: 11.69 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.574e-05/0.2617, allocations: 120.7 kB / 382.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.895e-05/0.2618, allocations: 30.66 kB / 382.8 MB, free: 11.59 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001358/0.2619, allocations: 100.6 kB / 382.9 MB, free: 11.56 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.278e-05/0.262, allocations: 334.8 kB / 383.2 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/0.2622, allocations: 84.36 kB / 383.3 MB, free: 11.21 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001557/0.2623, allocations: 98.59 kB / 383.4 MB, free: 11.18 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003224/0.2627, allocations: 438.9 kB / 383.8 MB, free: 10.79 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.716e-06/0.2627, allocations: 0.875 kB / 383.8 MB, free: 10.79 MB / 318.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006144/0.2633, allocations: 0.4952 MB / 384.3 MB, free: 10.54 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.612e-05/0.2634, allocations: 158.5 kB / 384.5 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.2634, allocations: 2.891 kB / 384.5 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.2634, allocations: 1.344 kB / 384.5 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.059e-05/0.2634, allocations: 2.281 kB / 384.5 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.2634, allocations: 3.984 kB / 384.5 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001491/0.2636, allocations: 23.47 kB / 384.5 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001037/0.2637, allocations: 104.6 kB / 384.6 MB, free: 10.36 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.0002745/0.264, allocations: 397.6 kB / 385 MB, free: 10.02 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.432e-05/0.264, allocations: 42.52 kB / 385 MB, free: 10 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.34e-05/0.2641, allocations: 69.22 kB / 385.1 MB, free: 9.969 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/0.2642, allocations: 0 / 385.1 MB, free: 9.969 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.2642, allocations: 9.094 kB / 385.1 MB, free: 9.969 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.2642, allocations: 0 / 385.1 MB, free: 9.969 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009847/0.2652, allocations: 0.9662 MB / 386.1 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2652, allocations: 0 / 386.1 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.819e-06/0.2652, allocations: 1.594 kB / 386.1 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.2652, allocations: 0.5156 kB / 386.1 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.551e-05/0.2652, allocations: 23.09 kB / 386.1 MB, free: 9.336 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.2652, allocations: 0 / 386.1 MB, free: 9.336 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.2652, allocations: 4.5 kB / 386.1 MB, free: 9.332 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007212/0.266, allocations: 0.6576 MB / 386.8 MB, free: 8.945 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002804/0.2663, allocations: 257.1 kB / 387 MB, free: 8.762 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.719e-05/0.2663, allocations: 13.72 kB / 387 MB, free: 8.758 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001413/0.2665, allocations: 11.48 kB / 387 MB, free: 8.758 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001462/0.2666, allocations: 57.98 kB / 387.1 MB, free: 8.742 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.873e-05/0.2667, allocations: 108.5 kB / 387.2 MB, free: 8.73 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004416/0.2672, allocations: 424 kB / 387.6 MB, free: 8.512 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.2672, allocations: 0 / 387.6 MB, free: 8.512 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002965/0.2675, allocations: 47.94 kB / 387.7 MB, free: 8.512 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.000896/0.2684, allocations: 1.229 MB / 388.9 MB, free: 7.574 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004992/0.2689, allocations: 0.5398 MB / 389.4 MB, free: 7.152 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.2689, allocations: 2.625 kB / 389.4 MB, free: 7.152 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002813/0.2692, allocations: 461.5 kB / 389.9 MB, free: 6.754 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008235/0.27, allocations: 205.3 kB / 390.1 MB, free: 6.688 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003492/0.2736, allocations: 3.236 MB / 393.3 MB, free: 4.609 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003222/0.2739, allocations: 0.8236 MB / 394.1 MB, free: 3.867 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.914e-05/0.274, allocations: 11.42 kB / 394.2 MB, free: 3.859 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.369e-05/0.2741, allocations: 46.38 kB / 394.2 MB, free: 3.824 MB / 318.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2741, allocations: 0 / 394.2 MB, free: 3.824 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02993/0.304, allocations: 9.227 MB / 403.4 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.296/8.601, allocations: 1.594 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