Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_4.0.0_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.001113/0.001113, allocations: 109.7 kB / 17.06 MB, free: 5.824 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.001137/0.001137, allocations: 191 kB / 18 MB, free: 4.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.569/1.569, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001076/0.001076, allocations: 51.92 kB / 351.3 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3394/0.3405, allocations: 49.44 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.004617/0.3452, allocations: 1.564 MB / 402.3 MB, free: 7.312 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003199/0.3485, allocations: 0.8637 MB / 403.2 MB, free: 6.445 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001393/0.3486, allocations: 0 / 403.2 MB, free: 6.445 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001469/0.3488, allocations: 19.86 kB / 403.2 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001776/0.3491, allocations: 15.86 kB / 403.2 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004286/0.3495, allocations: 55.88 kB / 403.2 MB, free: 6.355 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004128/0.35, allocations: 175.7 kB / 403.4 MB, free: 6.184 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001643/0.3501, allocations: 29.33 kB / 403.4 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009999/0.3511, allocations: 0.6356 MB / 404.1 MB, free: 5.516 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002342/0.3514, allocations: 87.62 kB / 404.2 MB, free: 5.43 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.547e-05/0.3515, allocations: 12 kB / 404.2 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.892e-05/0.3515, allocations: 8 kB / 404.2 MB, free: 5.41 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001455/0.3517, allocations: 71.7 kB / 404.3 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002129/0.3519, allocations: 139 kB / 404.4 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006341/0.3526, allocations: 458.4 kB / 404.8 MB, free: 4.754 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3526, allocations: 0 / 404.8 MB, free: 4.754 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3526, allocations: 0 / 404.8 MB, free: 4.754 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.837e-05/0.3526, allocations: 0 / 404.8 MB, free: 4.754 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.001569/0.3542, allocations: 0.8072 MB / 405.6 MB, free: 3.871 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.05e-05/0.3543, allocations: 19.91 kB / 405.7 MB, free: 3.852 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001703/0.3545, allocations: 44.38 kB / 405.7 MB, free: 3.809 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005193/0.355, allocations: 286.2 kB / 406 MB, free: 3.488 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.959e-05/0.3551, allocations: 16.38 kB / 406 MB, free: 3.473 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.953e-05/0.3551, allocations: 8.375 kB / 406 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005703/0.3557, allocations: 169.9 kB / 406.2 MB, free: 3.293 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.3557, allocations: 3.938 kB / 406.2 MB, free: 3.289 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.425e-05/0.3558, allocations: 8 kB / 406.2 MB, free: 3.281 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.3558, allocations: 0 / 406.2 MB, free: 3.281 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002873/0.3561, allocations: 83.95 kB / 406.3 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00123/0.3574, allocations: 0.5042 MB / 406.8 MB, free: 2.645 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000344/0.3577, allocations: 126.5 kB / 406.9 MB, free: 2.512 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002921/0.358, allocations: 108.9 kB / 407 MB, free: 2.402 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.533e-05/0.3581, allocations: 4 kB / 407 MB, free: 2.398 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005607/0.3586, allocations: 238.6 kB / 407.2 MB, free: 2.141 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 2.715e-06/0.3587, allocations: 0 / 407.2 MB, free: 2.141 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.001533/0.3602, allocations: 0.6185 MB / 407.9 MB, free: 1.484 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001557/0.3604, allocations: 195.9 kB / 408 MB, free: 1.25 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001117/0.3615, allocations: 0.5601 MB / 408.6 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.63e-05/0.3616, allocations: 33.7 kB / 408.6 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.3617, allocations: 117 kB / 408.8 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.736e-05/0.3618, allocations: 31.64 kB / 408.8 MB, free: 496 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002341/0.362, allocations: 97.41 kB / 408.9 MB, free: 392 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.3622, allocations: 326.8 kB / 409.2 MB, free: 56 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002823/0.3625, allocations: 91.94 kB / 409.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002518/0.3628, allocations: 93.67 kB / 409.4 MB, free: 15.87 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006298/0.3634, allocations: 434.7 kB / 409.8 MB, free: 15.38 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.3634, allocations: 3.938 kB / 409.8 MB, free: 15.37 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.00106/0.3645, allocations: 0.505 MB / 410.3 MB, free: 14.83 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001418/0.3646, allocations: 152.5 kB / 410.5 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.3647, allocations: 4 kB / 410.5 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.3647, allocations: 4.031 kB / 410.5 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.836e-05/0.3647, allocations: 112 / 410.5 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.3647, allocations: 3.938 kB / 410.5 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002382/0.365, allocations: 23.89 kB / 410.5 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001625/0.3652, allocations: 97.38 kB / 410.6 MB, free: 14.52 MB / 334.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.0005832/0.3658, allocations: 404 kB / 411 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.585e-05/0.3659, allocations: 43.53 kB / 411 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001601/0.366, allocations: 71.47 kB / 411.1 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.3661, allocations: 0 / 411.1 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.3661, allocations: 7.984 kB / 411.1 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.3661, allocations: 0 / 411.1 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001721/0.3678, allocations: 0.9589 MB / 412.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.3678, allocations: 0 / 412.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.458e-06/0.3679, allocations: 0 / 412.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.3679, allocations: 3.938 kB / 412.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.269e-05/0.3679, allocations: 19.98 kB / 412.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.3679, allocations: 0 / 412.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.368, allocations: 3.938 kB / 412.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001114/0.3691, allocations: 0.6634 MB / 412.8 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003447/0.3694, allocations: 260.3 kB / 413 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.36e-05/0.3695, allocations: 8 kB / 413 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001497/0.3697, allocations: 15.98 kB / 413 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001744/0.3698, allocations: 59.88 kB / 413.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/0.37, allocations: 93.3 kB / 413.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005472/0.3705, allocations: 418.8 kB / 413.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.764e-06/0.3705, allocations: 4 kB / 413.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003357/0.3709, allocations: 59.88 kB / 413.7 MB, free: 11.28 MB / 334.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.0001725/0.371, allocations: 127.1 kB / 413.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006647/0.3717, allocations: 0.5322 MB / 414.3 MB, free: 10.55 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3717, allocations: 0 / 414.3 MB, free: 10.55 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000457/0.3722, allocations: 469 kB / 414.8 MB, free: 10.03 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008004/0.373, allocations: 191.6 kB / 415 MB, free: 9.855 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001354/0.3744, allocations: 0.7445 MB / 415.7 MB, free: 9.086 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005976/0.375, allocations: 0.818 MB / 416.5 MB, free: 8.242 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001235/0.3751, allocations: 16.86 kB / 416.5 MB, free: 8.223 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.671e-05/0.3752, allocations: 19.44 kB / 416.6 MB, free: 8.203 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3752, allocations: 3.938 kB / 416.6 MB, free: 8.199 MB / 334.1 MB Notification: Performance of Templates: time 0.01329/0.3885, allocations: 7.434 MB / 424 MB, free: 0.6562 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches