Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00128/0.00128, allocations: 112.5 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001483/0.001483, allocations: 212.3 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 230.5 MB / 257.4 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002003/0.002003, allocations: 67.88 kB / 377.8 MB, free: 3.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3134/0.3154, allocations: 53.41 MB / 431.2 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003578/0.319, allocations: 1.569 MB / 432.8 MB, free: 5.148 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00244/0.3214, allocations: 0.9159 MB / 433.7 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.763e-05/0.3215, allocations: 0 / 433.7 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001173/0.3217, allocations: 11.86 kB / 433.7 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001196/0.3218, allocations: 23.86 kB / 433.7 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003365/0.3221, allocations: 59.8 kB / 433.8 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003061/0.3224, allocations: 155.7 kB / 433.9 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001227/0.3225, allocations: 25.58 kB / 433.9 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007909/0.3233, allocations: 0.6317 MB / 434.6 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002261/0.3236, allocations: 87.62 kB / 434.7 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.348e-05/0.3236, allocations: 11.98 kB / 434.7 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.276e-05/0.3237, allocations: 12 kB / 434.7 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001202/0.3238, allocations: 79.62 kB / 434.8 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001528/0.3239, allocations: 127 kB / 434.9 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005461/0.3245, allocations: 463.7 kB / 435.3 MB, free: 2.551 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.3245, allocations: 4 kB / 435.3 MB, free: 2.547 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.3245, allocations: 0 / 435.3 MB, free: 2.547 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.869e-05/0.3245, allocations: 4 kB / 435.3 MB, free: 2.543 MB / 334.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.001058/0.3256, allocations: 0.7502 MB / 436.1 MB, free: 1.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.3256, allocations: 8.031 kB / 436.1 MB, free: 1.723 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.717e-05/0.3257, allocations: 38.75 kB / 436.1 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.712e-05/0.3258, allocations: 44.66 kB / 436.2 MB, free: 1.633 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004059/0.3262, allocations: 252.7 kB / 436.4 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.216e-05/0.3262, allocations: 4.375 kB / 436.4 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.257e-05/0.3262, allocations: 8.375 kB / 436.4 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003895/0.3266, allocations: 176.5 kB / 436.6 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.3266, allocations: 4 kB / 436.6 MB, free: 1.168 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.773e-05/0.3267, allocations: 4 kB / 436.6 MB, free: 1.164 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.608e-06/0.3267, allocations: 0 / 436.6 MB, free: 1.164 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001943/0.3268, allocations: 83.95 kB / 436.7 MB, free: 1.082 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008535/0.3277, allocations: 475.5 kB / 437.2 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002368/0.3279, allocations: 98.47 kB / 437.3 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001879/0.3281, allocations: 100.8 kB / 437.4 MB, free: 376 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.139e-05/0.3281, allocations: 0 / 437.4 MB, free: 376 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004515/0.3286, allocations: 245.6 kB / 437.6 MB, free: 108 kB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.533e-06/0.3286, allocations: 112 / 437.6 MB, free: 108 kB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.00104/0.3296, allocations: 0.6107 MB / 438.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001264/0.3298, allocations: 199.8 kB / 438.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007728/0.3305, allocations: 0.5639 MB / 439 MB, free: 14.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.773e-05/0.3306, allocations: 37.69 kB / 439 MB, free: 14.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/0.3307, allocations: 121.1 kB / 439.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.558e-05/0.3307, allocations: 27.81 kB / 439.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001523/0.3309, allocations: 97.48 kB / 439.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.331, allocations: 330.8 kB / 439.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001609/0.3312, allocations: 83.95 kB / 439.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001751/0.3314, allocations: 93.81 kB / 439.7 MB, free: 13.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004623/0.3318, allocations: 438.6 kB / 440.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3318, allocations: 0 / 440.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007655/0.3326, allocations: 0.501 MB / 440.7 MB, free: 12.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001254/0.3327, allocations: 158.7 kB / 440.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.3327, allocations: 0 / 440.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.3327, allocations: 0 / 440.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.89e-05/0.3328, allocations: 0 / 440.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.381e-06/0.3328, allocations: 4 kB / 440.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001493/0.3329, allocations: 16.02 kB / 440.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001197/0.333, allocations: 101.2 kB / 440.9 MB, free: 12.51 MB / 350.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.0004246/0.3335, allocations: 396.1 kB / 441.3 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.675e-05/0.3335, allocations: 47.72 kB / 441.4 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001188/0.3336, allocations: 71.41 kB / 441.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.3336, allocations: 0 / 441.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.3337, allocations: 0 / 441.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.3337, allocations: 0 / 441.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001228/0.3349, allocations: 0.9468 MB / 442.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.3349, allocations: 4 kB / 442.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.909e-06/0.3349, allocations: 0 / 442.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.3349, allocations: 0 / 442.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.789e-05/0.3349, allocations: 19.98 kB / 442.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.999e-06/0.3349, allocations: 3.938 kB / 442.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3349, allocations: 128 / 442.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008519/0.3358, allocations: 0.6637 MB / 443.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004336/0.3362, allocations: 213.4 kB / 443.3 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.963e-05/0.3363, allocations: 15.98 kB / 443.3 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000151/0.3364, allocations: 23.92 kB / 443.3 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001682/0.3366, allocations: 51.94 kB / 443.4 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001126/0.3367, allocations: 105.2 kB / 443.5 MB, free: 9.805 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005639/0.3373, allocations: 418.8 kB / 443.9 MB, free: 9.398 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3373, allocations: 0 / 443.9 MB, free: 9.398 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000338/0.3376, allocations: 52 kB / 444 MB, free: 9.348 MB / 350.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.001286/0.3389, allocations: 1.22 MB / 445.2 MB, free: 8.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006523/0.3396, allocations: 484.8 kB / 445.6 MB, free: 7.535 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.3396, allocations: 0 / 445.6 MB, free: 7.535 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000409/0.34, allocations: 388.9 kB / 446 MB, free: 7.094 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000797/0.3408, allocations: 193.2 kB / 446.2 MB, free: 6.918 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004485/0.3453, allocations: 3.222 MB / 449.4 MB, free: 3.578 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005358/0.3458, allocations: 0.822 MB / 450.3 MB, free: 2.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.316e-05/0.3459, allocations: 12.95 kB / 450.3 MB, free: 2.715 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.776e-05/0.3459, allocations: 43.42 kB / 450.3 MB, free: 2.672 MB / 350.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3459, allocations: 3.938 kB / 450.3 MB, free: 2.668 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04286/0.3888, allocations: 9.428 MB / 459.7 MB, free: 9.184 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.73, allocations: 10.11 kB / 459.8 MB, free: 9.176 MB / 366.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --stepSize=0.00299162 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.235342766856775]