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: translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 114.5 kB / 17.73 MB, free: 5.34 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.001199/0.001199, allocations: 183 kB / 18.66 MB, free: 4.414 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.634/1.634, 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.001464/0.001464, allocations: 59.92 kB / 328.5 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1456/0.1471, allocations: 46.62 MB / 375.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003301/0.1505, allocations: 1.555 MB / 376.7 MB, free: 3.016 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00224/0.1528, allocations: 0.9097 MB / 377.6 MB, free: 2.098 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.759e-05/0.1528, allocations: 4 kB / 377.6 MB, free: 2.094 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001193/0.153, allocations: 7.875 kB / 377.6 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001267/0.1531, allocations: 27.8 kB / 377.6 MB, free: 2.059 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003216/0.1535, allocations: 55.86 kB / 377.7 MB, free: 2.004 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002627/0.1537, allocations: 159.7 kB / 377.9 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001389/0.1539, allocations: 33.39 kB / 377.9 MB, free: 1.816 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007381/0.1546, allocations: 0.6356 MB / 378.5 MB, free: 1.18 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000169/0.1548, allocations: 75.7 kB / 378.6 MB, free: 1.105 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.411e-05/0.1549, allocations: 12 kB / 378.6 MB, free: 1.094 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.611e-05/0.1549, allocations: 12 kB / 378.6 MB, free: 1.082 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001111/0.155, allocations: 79.67 kB / 378.7 MB, free: 1.004 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001438/0.1552, allocations: 131 kB / 378.8 MB, free: 0.875 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004505/0.1556, allocations: 458.4 kB / 379.3 MB, free: 436 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.321e-06/0.1556, allocations: 0 / 379.3 MB, free: 436 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.1556, allocations: 3.938 kB / 379.3 MB, free: 432 kB / 318.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.1557, allocations: 4 kB / 379.3 MB, free: 428 kB / 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.3222/0.4779, allocations: 0.8046 MB / 380.1 MB, free: 13 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.4779, allocations: 10.98 kB / 380.1 MB, free: 13 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.475e-05/0.4781, allocations: 45.12 kB / 380.1 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000295/0.4784, allocations: 288.9 kB / 380.4 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.425e-05/0.4784, allocations: 10.12 kB / 380.4 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.128e-05/0.4784, allocations: 10.66 kB / 380.4 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003778/0.4788, allocations: 168.1 kB / 380.6 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.4788, allocations: 2.5 kB / 380.6 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.147e-05/0.4789, allocations: 12.14 kB / 380.6 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.4789, allocations: 3.688 kB / 380.6 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001732/0.4791, allocations: 85.48 kB / 380.7 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007492/0.4798, allocations: 0.5003 MB / 381.2 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002125/0.4801, allocations: 126.6 kB / 381.3 MB, free: 12.37 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001759/0.4802, allocations: 108.3 kB / 381.4 MB, free: 12.36 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.154e-05/0.4803, allocations: 1.375 kB / 381.4 MB, free: 12.36 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003807/0.4806, allocations: 241.8 kB / 381.7 MB, free: 12.25 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 2.004e-06/0.4807, allocations: 4.219 kB / 381.7 MB, free: 12.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.001025/0.4817, allocations: 0.6101 MB / 382.3 MB, free: 12.05 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.097e-05/0.4818, allocations: 195.5 kB / 382.5 MB, free: 11.83 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009635/0.4827, allocations: 0.5657 MB / 383.1 MB, free: 11.62 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.707e-05/0.4828, allocations: 29.92 kB / 383.1 MB, free: 11.59 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.328e-05/0.4829, allocations: 117.8 kB / 383.2 MB, free: 11.48 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.718e-05/0.4829, allocations: 38.8 kB / 383.2 MB, free: 11.46 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/0.4831, allocations: 94 kB / 383.3 MB, free: 11.42 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001101/0.4832, allocations: 331.8 kB / 383.6 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002047/0.4834, allocations: 81.48 kB / 383.7 MB, free: 11.07 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002108/0.4837, allocations: 101.4 kB / 383.8 MB, free: 11.04 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004508/0.4841, allocations: 433.5 kB / 384.3 MB, free: 10.66 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.063e-06/0.4841, allocations: 1.125 kB / 384.3 MB, free: 10.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006987/0.4848, allocations: 0.5042 MB / 384.8 MB, free: 10.39 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.997e-05/0.4849, allocations: 156 kB / 384.9 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.4849, allocations: 0 / 384.9 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.168e-05/0.485, allocations: 1.531 kB / 384.9 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.626e-05/0.485, allocations: 0 / 384.9 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.485, allocations: 1.375 kB / 384.9 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001504/0.4852, allocations: 14.42 kB / 384.9 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001367/0.4853, allocations: 99.31 kB / 385 MB, free: 10.23 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.0003329/0.4857, allocations: 408.5 kB / 385.4 MB, free: 9.891 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.782e-05/0.4857, allocations: 45.47 kB / 385.5 MB, free: 9.867 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001034/0.4858, allocations: 73.61 kB / 385.5 MB, free: 9.828 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.4858, allocations: 0 / 385.5 MB, free: 9.828 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.4858, allocations: 1.531 kB / 385.5 MB, free: 9.828 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.4859, allocations: 0.9844 kB / 385.5 MB, free: 9.828 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001196/0.4871, allocations: 0.9575 MB / 386.5 MB, free: 9.203 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.4871, allocations: 4.594 kB / 386.5 MB, free: 9.203 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.703e-06/0.4871, allocations: 3.484 kB / 386.5 MB, free: 9.203 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.4871, allocations: 1.375 kB / 386.5 MB, free: 9.203 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.672e-05/0.4872, allocations: 26.95 kB / 386.5 MB, free: 9.195 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.4872, allocations: 0 / 386.5 MB, free: 9.195 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.4872, allocations: 1.438 kB / 386.5 MB, free: 9.195 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008426/0.488, allocations: 0.6639 MB / 387.2 MB, free: 8.801 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003177/0.4884, allocations: 260.8 kB / 387.5 MB, free: 8.613 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.368e-05/0.4884, allocations: 12.44 kB / 387.5 MB, free: 8.609 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001406/0.4886, allocations: 12.84 kB / 387.5 MB, free: 8.609 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001655/0.4887, allocations: 60.77 kB / 387.5 MB, free: 8.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001195/0.4889, allocations: 109 kB / 387.6 MB, free: 8.578 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005215/0.4894, allocations: 419.9 kB / 388.1 MB, free: 8.363 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4894, allocations: 0 / 388.1 MB, free: 8.363 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003057/0.4897, allocations: 54.94 kB / 388.1 MB, free: 8.359 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.0001465/0.4899, allocations: 117.4 kB / 388.2 MB, free: 8.266 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006396/0.4905, allocations: 0.5378 MB / 388.8 MB, free: 7.848 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.4905, allocations: 1.406 kB / 388.8 MB, free: 7.848 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003801/0.4909, allocations: 465 kB / 389.2 MB, free: 7.445 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008606/0.4918, allocations: 197.8 kB / 389.4 MB, free: 7.391 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0013/0.4931, allocations: 0.7493 MB / 390.2 MB, free: 6.984 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004205/0.4935, allocations: 0.8181 MB / 391 MB, free: 6.246 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.326e-05/0.4936, allocations: 16.23 kB / 391 MB, free: 6.238 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.559e-05/0.4936, allocations: 17.62 kB / 391 MB, free: 6.227 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4936, allocations: 0 / 391 MB, free: 6.227 MB / 318.1 MB Notification: Performance of Templates: time 0.01517/0.5088, allocations: 7.434 MB / 398.4 MB, free: 4.359 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) 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","/var/lib/jenkins/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