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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 85.95 kB / 23 MB, free: 1.504 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 172.2 kB / 26.39 MB, free: 8.156 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.001/1.001, allocations: 158.6 MB / 188.3 MB, free: 2.82 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 3.938 kB / 252.3 MB, free: 7.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.496e-05/2.65e-05, allocations: 2.312 kB / 252.3 MB, free: 7.25 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.00244/0.002467, allocations: 1.561 MB / 253.8 MB, free: 5.676 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001855/0.004322, allocations: 0.8662 MB / 254.7 MB, free: 4.801 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.151e-05/0.004403, allocations: 0 / 254.7 MB, free: 4.801 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001282/0.004531, allocations: 11.86 kB / 254.7 MB, free: 4.789 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001002/0.004632, allocations: 23.84 kB / 254.7 MB, free: 4.766 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003189/0.004951, allocations: 55.86 kB / 254.8 MB, free: 4.711 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002108/0.005161, allocations: 163.6 kB / 254.9 MB, free: 4.551 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001079/0.005269, allocations: 25.5 kB / 255 MB, free: 4.527 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000617/0.005886, allocations: 0.6629 MB / 255.6 MB, free: 3.863 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001632/0.006049, allocations: 75.8 kB / 255.7 MB, free: 3.789 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.004e-05/0.0061, allocations: 12 kB / 255.7 MB, free: 3.777 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.959e-05/0.006129, allocations: 12 kB / 255.7 MB, free: 3.766 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.974e-05/0.006219, allocations: 67.72 kB / 255.8 MB, free: 3.699 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.034e-05/0.006309, allocations: 67.66 kB / 255.9 MB, free: 3.633 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003255/0.006635, allocations: 358.7 kB / 256.2 MB, free: 3.281 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.006641, allocations: 3.984 kB / 256.2 MB, free: 3.277 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.006642, allocations: 4 kB / 256.2 MB, free: 3.273 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.006648, allocations: 0 / 256.2 MB, free: 3.273 MB / 234.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.0007995/0.007447, allocations: 0.8773 MB / 257.1 MB, free: 2.328 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.007488, allocations: 19.92 kB / 257.1 MB, free: 2.309 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.184e-05/0.00757, allocations: 48.7 kB / 257.2 MB, free: 2.262 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002459/0.007816, allocations: 242.8 kB / 257.4 MB, free: 1.996 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.755e-05/0.007844, allocations: 12.38 kB / 257.4 MB, free: 1.984 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.188e-05/0.007866, allocations: 8.375 kB / 257.4 MB, free: 1.977 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003449/0.008211, allocations: 295.3 kB / 257.7 MB, free: 1.645 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.008221, allocations: 192 / 257.7 MB, free: 1.645 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.027e-05/0.008241, allocations: 8.375 kB / 257.7 MB, free: 1.637 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.357e-06/0.008251, allocations: 7.938 kB / 257.7 MB, free: 1.629 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001423/0.008393, allocations: 204.4 kB / 257.9 MB, free: 1.398 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005274/0.008921, allocations: 440 kB / 258.3 MB, free: 0.9414 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001829/0.009103, allocations: 223.5 kB / 258.6 MB, free: 0.6797 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000134/0.009237, allocations: 204.2 kB / 258.8 MB, free: 456 kB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.165e-06/0.009246, allocations: 3.984 kB / 258.8 MB, free: 452 kB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002573/0.009503, allocations: 376.8 kB / 259.1 MB, free: 16 kB / 234.7 MB Notification: Performance of pre-optimization done (n=14): time 1.884e-06/0.009505, allocations: 7.938 kB / 259.1 MB, free: 8 kB / 234.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007443/0.01025, allocations: 0.8383 MB / 260 MB, free: 15.07 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.771e-05/0.01033, allocations: 199.9 kB / 260.2 MB, free: 14.84 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000519/0.01085, allocations: 0.5373 MB / 260.7 MB, free: 14.28 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.865e-05/0.01087, allocations: 37.64 kB / 260.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.771e-05/0.01095, allocations: 167.8 kB / 260.9 MB, free: 14.07 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.683e-05/0.01099, allocations: 31.83 kB / 260.9 MB, free: 14.04 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.872e-05/0.01109, allocations: 107.1 kB / 261 MB, free: 13.93 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.01123, allocations: 0.5001 MB / 261.5 MB, free: 13.41 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.01136, allocations: 200.6 kB / 261.7 MB, free: 13.19 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001267/0.01148, allocations: 223.4 kB / 262 MB, free: 12.93 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002473/0.01173, allocations: 404.3 kB / 262.4 MB, free: 12.47 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.01173, allocations: 0 / 262.4 MB, free: 12.47 MB / 250.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004986/0.01223, allocations: 0.6078 MB / 263 MB, free: 11.79 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.64e-05/0.01232, allocations: 152.5 kB / 263.1 MB, free: 11.61 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.01233, allocations: 4 kB / 263.1 MB, free: 11.61 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.368e-06/0.01234, allocations: 0 / 263.1 MB, free: 11.61 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.609e-05/0.01235, allocations: 0 / 263.1 MB, free: 11.61 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.146e-06/0.01235, allocations: 4.031 kB / 263.1 MB, free: 11.61 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001252/0.01248, allocations: 15.98 kB / 263.1 MB, free: 11.59 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.706e-05/0.01257, allocations: 97.44 kB / 263.2 MB, free: 11.5 MB / 250.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,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.0003233/0.01289, allocations: 415.1 kB / 263.6 MB, free: 11.05 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.197e-05/0.01295, allocations: 59.66 kB / 263.7 MB, free: 10.99 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.377e-05/0.01305, allocations: 63.39 kB / 263.8 MB, free: 10.93 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.01305, allocations: 7.922 kB / 263.8 MB, free: 10.92 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.01305, allocations: 4.062 kB / 263.8 MB, free: 10.91 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.01306, allocations: 0 / 263.8 MB, free: 10.91 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007845/0.01384, allocations: 0.9948 MB / 264.8 MB, free: 9.824 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.01385, allocations: 7.922 kB / 264.8 MB, free: 9.816 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.679e-06/0.01385, allocations: 0 / 264.8 MB, free: 9.816 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.01385, allocations: 0 / 264.8 MB, free: 9.816 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.368e-05/0.01388, allocations: 19.98 kB / 264.8 MB, free: 9.797 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.01388, allocations: 0 / 264.8 MB, free: 9.797 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.01388, allocations: 4 kB / 264.8 MB, free: 9.793 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005738/0.01445, allocations: 0.8325 MB / 265.6 MB, free: 8.879 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002541/0.01471, allocations: 193.3 kB / 265.8 MB, free: 8.688 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.328e-05/0.01475, allocations: 12 kB / 265.8 MB, free: 8.676 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.187e-05/0.01484, allocations: 19.98 kB / 265.8 MB, free: 8.656 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.804e-05/0.01493, allocations: 43.91 kB / 265.9 MB, free: 8.613 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.394e-05/0.01501, allocations: 101.4 kB / 266 MB, free: 8.512 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002482/0.01525, allocations: 326.8 kB / 266.3 MB, free: 8.195 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.01525, allocations: 0 / 266.3 MB, free: 8.195 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002261/0.01548, allocations: 48 kB / 266.4 MB, free: 8.148 MB / 250.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 (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.0001366/0.01562, allocations: 119.2 kB / 266.5 MB, free: 8.02 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004556/0.01607, allocations: 0.7046 MB / 267.2 MB, free: 7.188 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.01607, allocations: 64 / 267.2 MB, free: 7.188 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002894/0.01636, allocations: 0.5089 MB / 267.7 MB, free: 6.582 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005409/0.0169, allocations: 203.9 kB / 267.9 MB, free: 6.395 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009317/0.01784, allocations: 0.8434 MB / 268.7 MB, free: 5.492 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.938e-05/0.01793, allocations: 111.7 kB / 268.8 MB, free: 5.363 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.451e-05/0.01799, allocations: 8.969 kB / 268.8 MB, free: 5.352 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004132/0.0184, allocations: 286.1 kB / 269.1 MB, free: 5.07 MB / 250.7 MB Notification: Performance of SimCode: time 7.61e-07/0.0184, allocations: 0 / 269.1 MB, free: 5.07 MB / 250.7 MB Notification: Performance of Templates: time 0.008703/0.02711, allocations: 7.431 MB / 276.6 MB, free: 13.5 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.makefile [Timeout 660] (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 & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9933939781039953]